Revision: 2853
          http://ipcop.svn.sourceforge.net/ipcop/?rev=2853&view=rev
Author:   owes
Date:     2009-05-13 20:00:47 +0000 (Wed, 13 May 2009)

Log Message:
-----------
Add loading modules from /etc/modules
Test for mountpoint /proc for systems that boot without initramfs (for example 
RaQ4).

Modified Paths:
--------------
    ipcop/trunk/src/rc.d/rc.sysinit

Modified: ipcop/trunk/src/rc.d/rc.sysinit
===================================================================
--- ipcop/trunk/src/rc.d/rc.sysinit     2009-05-13 19:08:46 UTC (rev 2852)
+++ ipcop/trunk/src/rc.d/rc.sysinit     2009-05-13 20:00:47 UTC (rev 2853)
@@ -85,7 +85,22 @@
 export PATH
 
 # /dev, /proc and /sys are mount moved from initramfs
-# so no more need to mount them here
+# Still we check for /proc for those systems that boot without an initramfs
+if ! /bin/mountpoint -q /proc; then
+    echo -ne "Mounting /proc ... "
+    /bin/mount -t proc proc /proc
+    test_ok
+    echo -ne "Mounting /sys ... "
+    /bin/mount -t sysfs sysfs /sys
+    test_ok
+    echo -ne "Mounting /dev ... "
+    /bin/mount -t tmpfs tmpfs /dev -o mode=755
+    test_ok
+    cp -a /lib/udev/devices/* /dev
+    echo -ne "Setting udev as hotplug event handler ... "
+    echo > /proc/sys/kernel/hotplug
+    test_ok
+fi
 
 # Start udev
 echo -ne "Starting udev ... "
@@ -112,6 +127,13 @@
 /sbin/modprobe usbhid
 test_ok
 
+# We store needed modules in /etc/modules so we don't hardcode any modules here
+for MODULE in `cat /etc/modules | /bin/grep "^[^#]"`; do
+    echo -ne "Loading module ${MODULE} ... "
+    /sbin/modprobe ${MODULE}
+    test_ok
+done
+
 STRING="Checking filesystems integrity"
 /sbin/fsck -a -A -C -T 2>/dev/null
 fs_check_result $?


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to