#!/bin/sh
#
# /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.58 2000/05/03 11:49:52 waszi Exp $
+# $Id: rc.sysinit,v 1.59 2000/05/03 11:55:08 waszi Exp $
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
# /dev must be also mounted before everything but only if we want use them ;-)
if is_yes $MOUNT_DEVFS; then
-
run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
+fi
- # set up devfsd
+# set up devfsd
+if is_yes $RUN_DEVFSD; then
if [ -x /sbin/devfsd -a -f /etc/devfsd.conf ]; then
- if is_yes $RUN_DEVFSD; then
- run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
- fi
+ run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
fi
-
fi
-
# Set console loglevel
/bin/dmesg -n $CONSOLE_LOGLEVEL
echo
PS1="`nls "(Repair filesystem)# "`"; export PS1
- if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
+ if is_yes $RUN_SULOGIN_ON_ERR; then
sulogin
else
/bin/sh
echo
PS1="`nls "(RAID Repair)# "`"; export PS1
- if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
+ if is_yes $RUN_SULOGIN_ON_ERR; then
sulogin
else
/bin/sh
echo
PS1="`nls "(Repair filesystem)# "`"; export PS1
- if [ "$RUN_SULOGIN_ON_ERR" = "yes" ]; then
+ if is_yes $RUN_SULOGIN_ON_ERR; then
sulogin
else
/bin/sh
fi
# Clean /tmp
-if [ "$CLEAN_TMP" = "yes" ]; then
+if is_yes $CLEAN_TMP; then
rm -rf /tmp/*
fi