SHA256
1
0
forked from pool/dhcp
dhcp/dhcp-3.0.7-dhclient-script-skip-ifconfig-down.dif

30 lines
981 B
Plaintext

--- client/scripts/linux
+++ client/scripts/linux 2008/08/20 13:34:25
@@ -266,7 +266,7 @@ if [ x$reason = xBOUND ] || [ x$reason =
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]; then
# IP address changed. Bringing down the interface will delete all routes,
# and clear the ARP cache.
- ifconfig $interface inet 0 down
+ ifconfig $interface inet 0
fi
fi
@@ -347,7 +347,7 @@ if [ x$reason = xEXPIRE ] || [ x$reason
fi
if [ x$old_ip_address != x ]; then
# Shut down interface, which will delete routes and clear arp cache.
- ifconfig $interface inet 0 down
+ ifconfig $interface inet 0
fi
if [ x$alias_ip_address != x ]; then
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
@@ -381,7 +381,7 @@ if [ x$reason = xTIMEOUT ]; then
make_ntp_runtime_conf
exit_with_hooks 0
fi
- ifconfig $interface inet 0 down
+ ifconfig $interface inet 0
exit_with_hooks 1
fi