Do not set an exit status in dhclient-script.
From a post that I dug up from Brooks:
Why on earth are you exiting with $1 as the status? This is almostcertainly the problem. You should not exit from dhclient-exit-hooksat all since it occurs in the context of dhclient-script and this exit...
back out recent change.
Woops, log an error to system logs when we restart check_reload_status from dhclient-script instead of simply echoing out where someone may not even see it.
If for any reason check_reload_status is not started when dhclient fires of dhclient-script, restart it.
Write out old ip to /tmp/rc.newwanip_oldip
When adding nameservers to the system, add a route to the ip through the interface in question. This ensures that domain name server lookups to the nameserver goes out the correct wan address. Also before adding new entries route delete the old nameserver routes that are on file to ensure that a long uptime doesn't result in stale routes.
Pass rc.newwanip operations off to check_reload_status.c
Remove the space from #! line
Start rc.newwanip in the background
Pass interface correctly to rc.newwanip
View revisions
Also available in: Atom