Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/hostname
Show All 28 Lines | |||||
# PROVIDE: hostname | # PROVIDE: hostname | ||||
# REQUIRE: FILESYSTEMS | # REQUIRE: FILESYSTEMS | ||||
# BEFORE: netif | # BEFORE: netif | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
. /etc/network.subr | . /etc/network.subr | ||||
name="hostname" | name="hostname" | ||||
desc="Set the system\'s hostname" | |||||
start_cmd="hostname_start" | start_cmd="hostname_start" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
hostname_start() | hostname_start() | ||||
{ | { | ||||
# If we are not inside a jail, set the host name. | # If we are not inside a jail, set the host name. | ||||
# If we are inside a jail, set the host name if it is permitted. | # If we are inside a jail, set the host name if it is permitted. | ||||
# | # | ||||
Show All 34 Lines |