diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-01-05 01:41:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-01-05 01:41:29 +0000 |
commit | 9a1fcefbfdf28cb5fdacb422b7ad54f4d0f86dfa (patch) | |
tree | 17d604beeebc5879a1de04f9aa97dd54f4576a0f /package/base-files/default | |
parent | f24abcfb7a124de3fe8782263d266fffd867bf1c (diff) | |
download | upstream-9a1fcefbfdf28cb5fdacb422b7ad54f4d0f86dfa.tar.gz upstream-9a1fcefbfdf28cb5fdacb422b7ad54f4d0f86dfa.tar.bz2 upstream-9a1fcefbfdf28cb5fdacb422b7ad54f4d0f86dfa.zip |
mount sysfs at boot on linux 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2835 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default')
-rwxr-xr-x | package/base-files/default/etc/preinit | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/default/etc/preinit b/package/base-files/default/etc/preinit index ac9039ca71..f82823ec9c 100755 --- a/package/base-files/default/etc/preinit +++ b/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 |