1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 01:03:21 +02:00

only do hotplug2 init if hotplug2 is present

The current /init script unconditionally does the initialisation for
hotplug2, including mounting a new /dev. If hotplug2 isn't present, we
end up with no device nodes.

This change only does the hotplug2 init if hotplug2 is present, but
always mounts /sys.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9411 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-10-23 06:23:33 +00:00
parent 957fd804f1
commit 60084f42c7

View File

@ -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