summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
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
commit652fc44f0a62aafe9c32b5df8559d48cda2a5fd5 (patch)
treede1e5d5b6e14d2e324f11489241e15a17ffd8b8f /openwrt/package/base-files/default/etc
parent029055c7d78d8b49a945f514e7ce38edf0850e54 (diff)
downloadmtk-20170518-652fc44f0a62aafe9c32b5df8559d48cda2a5fd5.zip
mtk-20170518-652fc44f0a62aafe9c32b5df8559d48cda2a5fd5.tar.gz
mtk-20170518-652fc44f0a62aafe9c32b5df8559d48cda2a5fd5.tar.bz2
mount sysfs at boot on linux 2.6
SVN-Revision: 2835
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-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 ac9039c..f82823e 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