Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/system/etc/dhclient-exit-hooks

12 lines
308 B
Plaintext
Raw Normal View History

* Emit ip-up / ip-down events when we get or lose a DHCP lease. * ntpd: start on ip-up, not when the network interfaces are up, otherwise it will fail because it can't find any servers right away. svn path=/nixos/trunk/; revision=7461
2006-12-22 17:28:25 +00:00
echo "$reason" >> /tmp/dhcp-exit
echo "$exit_status" >> /tmp/dhcp-exit
if test "$reason" = BOUND -o "$reason" = REBOOT; then
* Flush the nscd hosts table after we've acquired an DHCP lease to prevent problems with negative caching (NIXOS-45). svn path=/nixos/trunk/; revision=7763
2007-01-23 10:22:00 +00:00
@glibc@/sbin/nscd --invalidate hosts
* Emit ip-up / ip-down events when we get or lose a DHCP lease. * ntpd: start on ip-up, not when the network interfaces are up, otherwise it will fail because it can't find any servers right away. svn path=/nixos/trunk/; revision=7461
2006-12-22 17:28:25 +00:00
@upstart@/sbin/initctl emit ip-up
fi
if test "$reason" = EXPIRE -o "$reason" = RELEASE; then
@upstart@/sbin/initctl emit ip-down
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 62ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API