hostname.subr (56961fd7949de755f95a60fe8ac936f81e953f5b) hostname.subr (f788e301b54c3b203da852b6e2e0840172a535f7)
1if [ ! "$_NETWORKING_HOSTNAME_SUBR" ]; then _NETWORKING_HOSTNAME_SUBR=1
2#
3# Copyright (c) 2006-2012 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 176 unchanged lines hidden (view full) ---

185 #
186 f_dialog_resolv_conf_update "$hostname"
187
188 #
189 # Only ask to apply setting if the current hostname is different than
190 # the stored configuration (in rc.conf(5)).
191 #
192 if [ "$( hostname )" != "$( f_sysrc_get hostname )" ]; then
1if [ ! "$_NETWORKING_HOSTNAME_SUBR" ]; then _NETWORKING_HOSTNAME_SUBR=1
2#
3# Copyright (c) 2006-2012 Devin Teske
4# All Rights Reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 176 unchanged lines hidden (view full) ---

185 #
186 f_dialog_resolv_conf_update "$hostname"
187
188 #
189 # Only ask to apply setting if the current hostname is different than
190 # the stored configuration (in rc.conf(5)).
191 #
192 if [ "$( hostname )" != "$( f_sysrc_get hostname )" ]; then
193 [ ! "$USE_XDIALOG" ] && dialog_clear
193 [ ! "$USE_XDIALOG" ] && f_dialog_clear
194
195 #
196 # If connected via ssh(1) and performing X11-Forwarding, don't
197 # allow the hostname to be changed to prevent the fatal error
198 # "X11 connection rejected because of wrong authentication."
199 #
200 if [ "$USE_XDIALOG" -a "$SSH_CONNECTION" ]; then
201 f_show_msg "$msg_activate_hostname_x11warning" \

--- 18 unchanged lines hidden ---
194
195 #
196 # If connected via ssh(1) and performing X11-Forwarding, don't
197 # allow the hostname to be changed to prevent the fatal error
198 # "X11 connection rejected because of wrong authentication."
199 #
200 if [ "$USE_XDIALOG" -a "$SSH_CONNECTION" ]; then
201 f_show_msg "$msg_activate_hostname_x11warning" \

--- 18 unchanged lines hidden ---