aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-01-05 01:41:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-01-05 01:41:29 +0000
commit0650d0f78cb2de743883b7ed2a2f95b020767bce (patch)
treeaea0a8e45b3b5a9ac4a29c403f29d739c0e83784
parent23b434d3c1f72d999dcf21d6e6de7be4ec978d57 (diff)
downloadupstream-0650d0f78cb2de743883b7ed2a2f95b020767bce.tar.gz
upstream-0650d0f78cb2de743883b7ed2a2f95b020767bce.tar.bz2
upstream-0650d0f78cb2de743883b7ed2a2f95b020767bce.zip
mount sysfs at boot on linux 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2835 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xopenwrt/package/base-files/default/etc/preinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit
index ac9039ca717..f82823ec9c5 100755
--- a/openwrt/package/base-files/default/etc/preinit
+++ b/openwrt/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