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 almost
certainly the problem.  You should not exit from dhclient-exit-hooks
at all since it occurs in the context of dhclient-script and this exit
values is entirely bogus.
This commit is contained in:
Scott Ullrich 2006-11-30 19:34:24 +00:00
parent 60906d7c42
commit 15b63fa83b

View File

@ -202,8 +202,6 @@ add_new_resolv_conf() {
exit_with_hooks() {
echo $interface > /tmp/rc.newwanip
echo $old_ip_address > /tmp/rc.newwanip_oldip
# probably should do something with exit status of the local script
exit 0
}
#