From: Felix Fietkau Date: Thu, 5 Jan 2006 01:41:29 +0000 (+0000) Subject: mount sysfs at boot on linux 2.6 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=cae605c127ba6547bcac35e89c5cfd69ddbb0e43 mount sysfs at boot on linux 2.6 SVN-Revision: 2835 --- 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