summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-01 10:47:17 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-01 10:47:17 +0000
commit97a03e4ee5550f7396a33acf12a40ae3f8d6d2f1 (patch)
tree7e05214822822d475dcf7799faaac9773185e9db /openwrt/package/base-files/default
parent0cc50d23cc819e845f0f12ced48a87d1d314fdce (diff)
move sysfs to mount_root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3107 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-xopenwrt/package/base-files/default/etc/preinit5
-rwxr-xr-xopenwrt/package/base-files/default/sbin/mount_root1
2 files changed, 1 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit
index f82823ec9c..ac9039ca71 100755
--- a/openwrt/package/base-files/default/etc/preinit
+++ b/openwrt/package/base-files/default/etc/preinit
@@ -21,9 +21,4 @@ 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
diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root
index bd9b815e12..427ff0444f 100755
--- a/openwrt/package/base-files/default/sbin/mount_root
+++ b/openwrt/package/base-files/default/sbin/mount_root
@@ -37,3 +37,4 @@ fi
mount none /tmp -t tmpfs -o nosuid,nodev,mode=1777,size=50%
mkdir -p /dev/pts
mount none /dev/pts -t devpts
+grep sysfs /proc/filesystems >&- && mount -t sysfs none /sys