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

Unified Diff: dhcpcd-hooks/30-hostname

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/29-lookup-hostname ('k') | dhcpcd-hooks/50-dhcpcd-compat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dhcpcd-hooks/30-hostname
diff --git a/dhcpcd-hooks/30-hostname b/dhcpcd-hooks/30-hostname
deleted file mode 100644
index a19fc0df5526a8bdac18e773ead1cdb8a9475822..0000000000000000000000000000000000000000
--- a/dhcpcd-hooks/30-hostname
+++ /dev/null
@@ -1,34 +0,0 @@
-# Set the hostname from DHCP data if required
-
-need_hostname()
-{
- local hostname=""
-
- case "$force_hostname" in
- [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|1) ;;
- *) hostname="$(hostname)";;
- esac
- case "$hostname" in
- ""|"(none)"|localhost|localhost.localdomain)
- [ -n "$new_host_name" -o -n "$new_fqdn_name" ];;
- "$old_host_name"|"$old_fqdn_name")
- true;;
- *)
- false;;
- esac
-}
-
-set_hostname()
-{
- if need_hostname; then
- if [ -n "$new_host_name" ]; then
- hostname "$new_host_name"
- elif [ -n "$new_fqdn_name" ]; then
- hostname "$new_fqdn_name"
- fi
- fi
-}
-
-case "$reason" in
-BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) set_hostname;;
-esac
« no previous file with comments | « dhcpcd-hooks/29-lookup-hostname ('k') | dhcpcd-hooks/50-dhcpcd-compat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698