CVS: initscripts/rc.d rc.sysinit,1.8,1.9

Jasper Huysmans jasper at lunar-linux.org
Tue Nov 18 10:33:08 GMT 2003


Update of /var/cvs/lunar/initscripts/rc.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv13564

Modified Files:
	rc.sysinit 
Log Message:
Check if modules in /etc/modules are not commented out

Index: rc.sysinit
===================================================================
RCS file: /var/cvs/lunar/initscripts/rc.d/rc.sysinit,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- rc.sysinit	18 Nov 2003 08:13:37 -0000	1.8
+++ rc.sysinit	18 Nov 2003 10:33:06 -0000	1.9
@@ -451,9 +451,12 @@
 # Lunar module loading script moved here:
 if [ -n "$USEMODULES" -a -f /etc/modules ]; then
   echo $"Loading modules from /etc/modules"
-  for module in $(cat /etc/modules); do
-    action " * $module :" /sbin/modprobe $module
-  done
+  while read module; do
+    case $module in
+      \#*) ;;
+      ?*) action " * $module :" /sbin/modprobe $module ;;
+    esac
+  done < /etc/modules
 fi
 
  # update_boot_stage RCraid




More information about the Lunar-commits mailing list