Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rc/rc
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | if [ "$1" = autoboot ]; then | ||||
autoboot=yes | autoboot=yes | ||||
_boot="faststart" | _boot="faststart" | ||||
rc_fast=yes # run_rc_command(): do fast booting | rc_fast=yes # run_rc_command(): do fast booting | ||||
else | else | ||||
autoboot=no | autoboot=no | ||||
_boot="quietstart" | _boot="quietstart" | ||||
fi | fi | ||||
_localbase=`/sbin/sysctl -n user.localbase 2> /dev/null` | |||||
dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` | dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null` | ||||
if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then | if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then | ||||
sh /etc/rc.initdiskless | sh /etc/rc.initdiskless | ||||
fi | fi | ||||
# Run these after determining whether we are booting diskless in order | # Run these after determining whether we are booting diskless in order | ||||
# to minimize the number of files that are needed on a diskless system, | # to minimize the number of files that are needed on a diskless system, | ||||
# and to make the configuration file variables available to rc itself. | # and to make the configuration file variables available to rc itself. | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |