Lines Matching refs:hostname
32 f_dprintf "%s: loading includes..." networking/hostname.subr
43 # f_dialog_hnerror $error $hostname
64 # f_dialog_validate_hostname $hostname
66 # Returns zero if the given argument (a fully-qualified hostname) is compliant
75 # If the hostname is determined to be invalid, the appropriate error will be
93 # Edits the current hostname.
98 local hostname="$( f_sysrc_get 'hostname:-$(hostname)' )"
99 local hostname_orig="$hostname" # for change-tracking
112 f_dialog_input hostname "$msg" "$hostname" \
115 f_dialog_validate_hostname "$hostname" && break
119 # Save hostname only if the user changed the hostname.
121 if [ "$hostname" != "$hostname_orig" ]; then
124 'f_sysrc_set hostname "%s"' "$hostname"
130 f_dialog_resolv_conf_update "$hostname"
133 # Only ask to apply setting if the current hostname is different than
136 if [ "$( hostname )" != "$( f_sysrc_get hostname )" ]; then
141 # allow the hostname to be changed to prevent the fatal error
146 "$( hostname )" "$hostname"
149 "$( hostname )" "$hostname" \
150 && hostname "$hostname"
159 f_dprintf "%s: Successfully loaded." networking/hostname.subr