2006-12-22 18:28:25 +01:00
|
|
|
echo "$reason" >> /tmp/dhcp-exit
|
|
|
|
echo "$exit_status" >> /tmp/dhcp-exit
|
|
|
|
|
|
|
|
if test "$reason" = BOUND -o "$reason" = REBOOT; then
|
2007-01-23 11:22:00 +01:00
|
|
|
@glibc@/sbin/nscd --invalidate hosts
|
2006-12-22 18:28:25 +01:00
|
|
|
@upstart@/sbin/initctl emit ip-up
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$reason" = EXPIRE -o "$reason" = RELEASE; then
|
|
|
|
@upstart@/sbin/initctl emit ip-down
|
|
|
|
fi
|