Author: glen
Date: Thu Nov  1 03:53:59 2007
New Revision: 8940

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- read /proc/cmdline after /proc mount

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit    (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit    Thu Nov  1 03:53:59 2007
@@ -36,9 +36,6 @@
 
 CONSOLE_LOGLEVEL=1
 
-# Only read this once.
-cmdline=$(cat /proc/cmdline)
-
 # Read functions
 . /etc/rc.d/init.d/functions
 
@@ -96,6 +93,9 @@
        # we need /proc mounted before everything
        mount -n -o gid=17 -t proc /proc /proc
 
+       # Only read this once.
+       cmdline=$(cat /proc/cmdline)
+
        # sysfs is also needed before any other things (under kernel > 2.5)
        if grep -q sysfs /proc/filesystems 2>/dev/null ; then
                mount -n -o gid=17 -t sysfs sysfs /sys
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to