only do hotplug2 init if hotplug2 is present
[openwrt/staging/chunkeey.git] / target / linux / generic-2.6 / base-files / init
index 9f595c0f9534c1ffe74d0d42478b92a0a15f0fd0..98002aba3db7e4b368fc3cf78b5d1e36c568bd78 100755 (executable)
@@ -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