]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- logging errors from depmod and modprobe via syslog
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 2 Sep 1999 12:16:15 +0000 (12:16 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 2 Sep 1999 12:16:15 +0000 (12:16 +0000)
svn-id: @501

rc.d/rc.sysinit

index dd9021c05579d2306383d73e10abba69e776e359..e11b7a3fa46fbfe9e76d374554b1e4a7e4118bf1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.23 1999/08/31 23:12:44 wiget Exp $
+# $Id: rc.sysinit,v 1.24 1999/09/02 12:16:15 misiek Exp $
 #
 # Taken in part from Miquel van Smoorenburg's bcheckrc.
 # Changes:      Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
@@ -182,16 +182,16 @@ if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
  fi
     [ -n "$mver" -a -f "/boot/module-info-$mver" ] && ln -sf /boot/module-info-$mver /boot/module-info
     [ -n "$mver" -a -f "/boot/System.map-$mver" ] && ln -sf /boot/System.map-$mver /boot/System.map
-    run_cmd "Finding module dependencies" depmod -as
+    run_cmd "Finding module dependencies" depmod -a -s
 fi
 
 # load sound modules
 if [ -n "$USEMODULES" ] && [ "$LOAD_SOUND" == "yes" ]; then
    if grep -s -q "^alias sound" /etc/conf.modules ; then
-      run_cmd "Loading sound module" modprobe sound
+      run_cmd "Loading sound module" modprobe -s sound
    fi
    if grep -s -q "^alias midi" /etc/conf.modules ; then
-      run_cmd "Loading midi module" modprobe midi
+      run_cmd "Loading midi module" modprobe -s midi
    fi
 fi
 
@@ -371,7 +371,7 @@ if [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi | grep -q 'Type:   Sequential-A
        if cat /proc/devices | grep -qv ' 9 st' ; then
                if [ -n "$USEMODULES" ] ; then
                        # Try to load the module.  If it fails, ignore it...
-                       insmod -p st >/dev/null 2>&1 && modprobe st >/dev/null 2>&1
+                       insmod -p st >/dev/null 2>&1 && modprobe -s st >/dev/null 2>&1
                fi
        fi
 fi
This page took 0.03495 seconds and 4 git commands to generate.