Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/hostname
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | hostname_start() | ||||
| # All right, it is safe to invoke hostname(1) now. | # All right, it is safe to invoke hostname(1) now. | ||||
| # | # | ||||
| startmsg -n "Setting hostname: ${hostname}" | startmsg -n "Setting hostname: ${hostname}" | ||||
| /bin/hostname "${hostname}" | /bin/hostname "${hostname}" | ||||
| startmsg '.' | startmsg '.' | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: config setting | |||||
| hostname_svcj="NO" | |||||
| run_rc_command "$1" | run_rc_command "$1" | ||||