/sbin/hotplug-call: export the hotplug event type through the environment for hotplug...
[openwrt/svn-archive/archive.git] / package / base-files / files / sbin / mount_root
index 4fa048f43aa9d7f060d05b99c4e30e151964237f..7b89e8f3f69c7115ab0bfc5bdc2dfac79392130b 100755 (executable)
@@ -11,8 +11,9 @@ else
        mount -t sysfs none /sys
        mount -t tmpfs tmpfs /dev -o size=512K
        mknod /dev/console c 5 1
+       exec >/dev/console </dev/console 2>&1
        mkdir /dev/shm
-       /sbin/mdev -s
+       /sbin/hotplug2 --no-persistent --coldplug --max-children 3
 fi
 mkdir -p /dev/pts
 mount none /dev/pts -t devpts
@@ -28,5 +29,3 @@ mount none /dev/pts -t devpts
                }
        } || mount -o remount,rw /dev/root /
 }
-
-grep sysfs /proc/filesystems >/dev/null && mount -t sysfs none /sys 2>&-