]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- typos
authorwaszi <waszi@pld-linux.org>
Wed, 3 May 2000 11:55:08 +0000 (11:55 +0000)
committerwaszi <waszi@pld-linux.org>
Wed, 3 May 2000 11:55:08 +0000 (11:55 +0000)
- in some places changed [ VARIABLE = "yes" ] ==> is_yes
- devfsd may be used without DEVFS_MOUNT=yes

svn-id: @736

rc.d/rc.sysinit

index 3a8e1063dbff0949335ea789dd8cb56651ffa997..2eb792cac385f4389a6e93f8dd572d9f7658e10a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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>
@@ -65,19 +65,16 @@ mount -n -t proc /proc /proc
 
 # /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
 
@@ -185,7 +182,7 @@ if awk '{ if ($2 ~ /^\/$/ && ( $3 ~ /^(nfs|romfs)$/ || $6 ~ /^0$/ ) ) exit 1 ; e
                    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
@@ -341,7 +338,7 @@ if [ -f /proc/mdstat -a -f /etc/raidtab ]; then
                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
@@ -370,7 +367,7 @@ if [ ! -f /fastboot ]; then
                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
@@ -426,7 +423,7 @@ if [ -n "$NEED_XFILES" ]; then
 fi
 
 # Clean /tmp
-if [ "$CLEAN_TMP" = "yes" ]; then
+if is_yes $CLEAN_TMP; then
        rm -rf /tmp/*
 fi
 
This page took 0.161114 seconds and 4 git commands to generate.