summaryrefslogtreecommitdiff
path: root/openwrt/package
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package')
-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 ac9039ca71..f82823ec9c 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