Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: dhcpcd-hooks/50-yp.conf

Issue 2428004: Overhaul dhcpcd for chrome os use (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: purge hooks from configure to silence complaint Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dhcpcd-hooks/50-ntp.conf ('k') | dhcpcd-hooks/50-ypbind » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dhcpcd-hooks/50-yp.conf
diff --git a/dhcpcd-hooks/50-yp.conf b/dhcpcd-hooks/50-yp.conf
deleted file mode 100644
index 4bdd0623e7f465cf238cf1cdb49096fc94619a91..0000000000000000000000000000000000000000
--- a/dhcpcd-hooks/50-yp.conf
+++ /dev/null
@@ -1,50 +0,0 @@
-# Sample dhcpcd hook for ypbind
-# This script is only suitable for the Linux version.
-
-ypbind_pid()
-{
- [ -s /var/run/ypbind.pid ] && cat /var/run/ypbind.pid
-}
-
-make_yp_conf()
-{
- [ -z "$new_nis_domain" -a -z "$new_nis_servers" ] && return 0
- local cf=/etc/yp.conf."$interface" prefix= x= pid=
- rm -f "$cf"
- echo "$signature" > "$cf"
- if [ -n "$new_nis_domain" ]; then
- domainname "$new_nis_domain"
- if [ -n "$new_nis_servers" ]; then
- prefix="domain $new_nis_domain server "
- else
- echo "domain $new_nis_domain broadcast" >> "$cf"
- fi
- else
- prefix="ypserver "
- fi
- for x in $new_nis_servers; do
- echo "$prefix$x" >> "$cf"
- done
- save_conf /etc/yp.conf
- cat "$cf" > /etc/yp.conf
- rm -f "$cf"
- pid="$(ypbind_pid)"
- if [ -n "$pid" ]; then
- kill -HUP "$pid"
- fi
-}
-
-restore_yp_conf()
-{
- [ -n "$old_nis_domain" ] && domainname ""
- restore_conf /etc/yp.conf || return 0
- local pid="$(ypbind_pid)"
- if [ -n "$pid" ]; then
- kill -HUP "$pid"
- fi
-}
-
-case "$reason" in
-BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) make_yp_conf;;
-EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) restore_yp_conf;;
-esac
« no previous file with comments | « dhcpcd-hooks/50-ntp.conf ('k') | dhcpcd-hooks/50-ypbind » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698