Move /etc/conf.d/rc to /etc/rc.conf.
Lowercase all configurable variables, non configurations remain uppercase. Replace rc_env_bool with rc_yesno. Split localmount info procfs (Linux) and dumpon, savecore (BSD)
This commit is contained in:
@@ -31,13 +31,9 @@ depend() {
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ -f /etc/hostname ] ; then
|
||||
ewarn "You should stop using /etc/hostname and use /etc/conf.d/hostname"
|
||||
HOSTNAME=$(cat /etc/hostname)
|
||||
fi
|
||||
|
||||
ebegin "Setting hostname to ${HOSTNAME}"
|
||||
hostname "${HOSTNAME}"
|
||||
hostname=${hostname-${HOSTNAME-localhost}}
|
||||
ebegin "Setting hostname to ${hostname}"
|
||||
hostname "${hostname}"
|
||||
eend $? "Failed to set the hostname"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user