1 # Set the hostname from DHCP data if required
7 case "$force_hostname" in
8 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|1) ;;
9 *) hostname="$(hostname)";;
12 ""|"(none)"|localhost|localhost.localdomain)
13 [ -n "$new_host_name" -o -n "$new_fqdn_name" ];;
14 "$old_host_name"|"$old_fqdn_name")
23 if need_hostname; then
24 if [ -n "$new_host_name" ]; then
25 hostname "$new_host_name"
26 elif [ -n "$new_fqdn_name" ]; then
27 hostname "$new_fqdn_name"
33 BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) set_hostname;;