Index: etc/rc.d/hostname =================================================================== --- etc/rc.d/hostname +++ etc/rc.d/hostname @@ -33,9 +33,12 @@ . /etc/rc.subr . /etc/network.subr -name="hostname" -start_cmd="hostname_start" -stop_cmd=":" +name=hostname + +load_rc_config $name + +start_cmd=hostname_start +stop_cmd=: hostname_start() { @@ -47,8 +50,6 @@ if [ `$SYSCTL_N security.jail.set_hostname_allowed` -eq 0 ]; then return fi - elif [ -n "`/bin/hostname -s`" ]; then - return else # If we're not in a jail and rc.conf doesn't specify a # hostname, see if we can get one from kenv. @@ -77,5 +78,4 @@ check_startmsgs && echo '.' } -load_rc_config $name run_rc_command "$1"