start()
{
# Mount local filesystems in /etc/fstab.
+ # The types variable must start with no, and must be a type
local critical= types="noproc" x= no_netdev= rc=
for x in $net_fs_list $extra_net_fs_list; do
- types="${types},no${x}"
+ types="${types},${x}"
done
if [ "$RC_UNAME" = Linux ]; then
else
ebegin "Bringing up network interface lo0"
ifconfig lo0 127.0.0.1 netmask 255.0.0.0
- route -q add -inet 127.0.0.0 -netmask 255.0.0.0 127.0.0.1
fi
eend $?
}
Linux_modules()
{
- # Should not fail if kernel do not have module
+ # Should not fail if kernel does not have module
# support compiled in ...
[ ! -f /proc/modules ] && return 0
x=${x%.*}
done
- local list= x= xx= y= args= mpargs= cnt=0 a=
+ local list= x= xx= y= args= mpargs= a=
for x in $kv_variant_list ; do
eval list=\$modules_$(shell_var "$x")
[ -n "$list" ] && break
done
[ -z "$list" ] && list=$modules
+ [ -n "$list" ] && ebegin "Loading kernel modules"
for x in $list; do
a=${x#*:}
if [ "$a" = "$x" ]; then
unset mpargs
- ebegin "Loading module $x"
else
x=${x%%:*}
mpargs="-o $a"
- ebegin "Loading module $x as $a"
fi
aa=$(shell_var "$a")
xx=$(shell_var "$x")
done
[ -z "$args" ] && eval args=\$module_${aa}_args
[ -z "$args" ] && eval args=\$module_${xx}_args
- eval modprobe --use-blacklist -q "$mpargs" "$x" "$args"
- eend $? "Failed to load $x" && : $(( cnt += 1 ))
+ eval modprobe --use-blacklist --verbose "$mpargs" "$x" "$args"
done
- einfo "Autoloaded $cnt module(s)"
+ [ -n "$list" ] && eend
}
start()
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
-#rc_logger="YES"
+#rc_logger="NO"
# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log