exec > /dev/console
###
-. /etc/init.d/pl_functions
+source /etc/init.d/pl_functions
verbose-message "PlanetLab BootCD - distro @PLDISTRO@ based on @FCDISTRO@"
start_device=${device:0:2}
if [ "$start_device" == "ra" ] || [ "$start_device" == "md" ] ||
- [ "$start_device" == "lo" ] || [ "$start_device" == "fd" ]; then
+ [ "$start_device" == "lo" ] || [ "$start_device" == "fd" ]; then
continue
fi
fi
done
fi
-
+
verbose-message "pl_sysinit: checking $device for /usr contents"
/bin/mount -o ro -t iso9660 /dev/$device /usr 2>&1 > /dev/null
if [ $? -eq 0 ]; then
fi
# parts of this were copied from devmap_mknod.sh from the device-mapper
-# source. Since fedora decided not to include it in the rpm, it is
+# source. Since fedora decided not to include it in the rpm, it is
# being copied here
function create-device-mapper-node() {
MAJOR=$(sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)
MINOR=$(sed -n "s/^ *\([0-9]\+\) \+$DM_NAME\$/\1/p" /proc/misc)
-
+
if [ -n "$MAJOR" ] && [ -n "$MINOR" ]; then
/bin/mkdir -p --mode=755 $DIR
/bin/rm -f $CONTROL
create-device-mapper-node
verbose-message "pl_sysinit: configuring kernel parameters"
-verbose-run /sbin/sysctl -e -p /etc/sysctl.conf
+verbose-run /sbin/sysctl -e -p /etc/sysctl.conf
# startup rsyslog if available (we're *NOT* running the standard rc)
syslog=/etc/rc.d/init.d/rsyslog
if [ -x $syslog ]; then
verbose-message "pl_sysinit: starting rsyslog"
- verbose-run $syslog start
+ verbose-run $syslog start
else
verbose-message "pl_sysinit: WARNING cannot start rsyslog"
fi
verbose-message "pl_sysinit: bringing network online"
-verbose-run /etc/init.d/pl_netinit
+verbose-run /etc/init.d/pl_netinit
function sync-clock() {
/usr/sbin/ntpdate -b -t 10 -u pool.ntp.org