mount sysfs at boot on linux 2.6
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 5 Jan 2006 01:41:29 +0000 (01:41 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 5 Jan 2006 01:41:29 +0000 (01:41 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2835 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/default/etc/preinit

index ac9039c..f82823e 100755 (executable)
@@ -21,4 +21,9 @@ mount_root ${FAILSAFE:+failsafe}
        { mount|grep "on / type jffs2" 1>&-; } || firstboot
 }
 
+grep sysfs /proc/filesystems >&- 2>&- && {
+       mkdir -p /sys
+       mount -t sysfs none /sys
+}
+
 exec /sbin/init
This page took 0.033101 seconds and 4 git commands to generate.