Don't need the rm -f statement when using > redirect to overwrite thefile, and add the "then" to the if statements
Be safer use the remote-ip address for adding route.
Explicitly set the exit status of the script to not make mpd fail.
Use full patch to command and fix route add command parameter is -iface and not -if.
Actually its dns2 for the second entry.
Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan.
Generate the {interface}up status file.
Fix issue reported on ticket #1825.
Actually apply fixes to the correct files.
Do not allow mpd to block
Recompile for FreeBSD 6
MFC 7196mpd blocks until ppp-linkup exits, background rc.newwanip as dyndns is tripping this up (it tries to connect out a pppoe connection that's blocking on this script).
Tested-by: DungaBee, Hoba, and a few others.
MFC 6871If WAN is pppoe, hold down boot until connection is established This will help anyone with PPPOE on WAN and DHCP on OPTx not get incorrect gateways assigned.
Remove ppp-linkup, readding as non binary file.
Initial revision