summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/generic-2.6/base-files/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/base-files/init b/target/linux/generic-2.6/base-files/init
index 9f595c0f95..98002aba3d 100755
--- a/target/linux/generic-2.6/base-files/init
+++ b/target/linux/generic-2.6/base-files/init
@@ -3,11 +3,12 @@
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount none /proc -t proc
+mount none /sys -t sysfs
if grep devfs /proc/filesystems > /dev/null; then
mount none /dev -t devfs
-else
- mount -t sysfs none /sys
+
+elif [ -x /sbin/hotplug2 ]; then
mount -t tmpfs tmpfs /dev -o size=512K
mknod /dev/console c 5 1
mkdir /dev/pts