Lines Matching full:hostname
28 # PROVIDE: hostname
35 name="hostname"
36 desc="Set the system\'s hostname"
51 # hostname, see if we can get one from kenv.
53 if [ -z "${hostname}" -a \
55 hostname=`/bin/kenv dhcp.host-name`
59 # Have we got a hostname yet?
61 if [ -z "${hostname}" ]; then
62 # Null hostname is probably OK if DHCP is in use,
63 # or when hostname is already set (common for jails).
66 -z "`/bin/hostname`" ]; then
67 warn "\$hostname is not set -- see rc.conf(5)."
72 # All right, it is safe to invoke hostname(1) now.
74 startmsg -n "Setting hostname: ${hostname}"
75 /bin/hostname "${hostname}"