X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/4bb342946e09b8aabe702770055ec09985e78d1e..45e4c70122445c22479359aef30752e21677a57e:/openwrt/package/base-files/default/etc/preinit diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit index ac9039ca7..f82823ec9 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