From be333fdd0a4d3ecce9370e7a1e6efbf4d43551a4 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 5 Jan 2006 01:41:29 +0000 Subject: mount sysfs at boot on linux 2.6 git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2835 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/default/etc/preinit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/base-files/default/etc/preinit b/package/base-files/default/etc/preinit index ac9039ca7..f82823ec9 100755 --- a/package/base-files/default/etc/preinit +++ b/package/base-files/default/etc/preinit @@ -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 -- cgit v1.2.3