diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-05 18:33:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-05 18:33:18 +0000 |
commit | 4e4050b160c20946d07789a6f6c71b6b2c4c28b3 (patch) | |
tree | e281bcd95cb9e165ddac1b4ae8f002f20e6acff9 /target/linux/brcm-2.4/base-files/default | |
parent | 6232c138af89a6f6b28350ec1fbee39b0b5747a4 (diff) | |
download | master-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.tar.gz master-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.tar.bz2 master-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.zip |
use hotplug2 for serializing hotplug events on 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.4/base-files/default')
-rwxr-xr-x | target/linux/brcm-2.4/base-files/default/etc/preinit | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/brcm-2.4/base-files/default/etc/preinit b/target/linux/brcm-2.4/base-files/default/etc/preinit index 11d9342796..4513d6382d 100755 --- a/target/linux/brcm-2.4/base-files/default/etc/preinit +++ b/target/linux/brcm-2.4/base-files/default/etc/preinit @@ -31,14 +31,16 @@ if grep devfs /proc/filesystems > /dev/null; then mount none /dev -t devfs M0=/dev/pty/m0 M1=/dev/pty/m1 + HOTPLUG=/sbin/hotplug-call else mount -t sysfs none /sys mount -t tmpfs tmpfs /dev -o size=512K mknod /dev/console c 5 1 mkdir /dev/shm - /sbin/hotplug2 --no-persistent --coldplug --max_children 1 + /sbin/hotplug2 --no-persistent --coldplug --set-rules-file /etc/hotplug2-init.rules M0=/dev/ptmx M1=/dev/ptmx + HOTPLUG= fi mkdir -p /dev/pts mount none /dev/pts -t devpts @@ -86,7 +88,7 @@ eval ${FAILSAFE:+failsafe} lock -w /tmp/.failsafe set_state preinit -echo /sbin/hotplug-call > /proc/sys/kernel/hotplug +echo "$HOTPLUG" > /proc/sys/kernel/hotplug ifconfig $ifname 0.0.0.0 down |