Limit the number of hotplug childrens
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 1 Apr 2007 18:30:32 +0000 (18:30 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 1 Apr 2007 18:30:32 +0000 (18:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6804 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/init.d/boot
package/base-files/files/sbin/mount_root
target/linux/brcm-2.4/base-files/default/etc/preinit
target/linux/generic-2.6/files/init

index c644b2fec2d9ccf0c817fffbcc0eea84e65df08c..0d7e11ceddb051f27bb7bf5da12cafd3201d204a 100755 (executable)
@@ -31,8 +31,8 @@ start() {
        for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do
                /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug-call net
        done
-
-       /sbin/hotplug2 --persistent &
+       
+       /sbin/hotplug2 --persistent --max-children 1 &
        echo /sbin/hotplug-call > /proc/sys/kernel/hotplug
 
        load_modules /etc/modules.d/*
index 7b89e8f3f69c7115ab0bfc5bdc2dfac79392130b..80078b51647ffd4404227e85c6e301a22de086cb 100755 (executable)
@@ -13,7 +13,7 @@ else
        mknod /dev/console c 5 1
        exec >/dev/console </dev/console 2>&1
        mkdir /dev/shm
-       /sbin/hotplug2 --no-persistent --coldplug --max-children 3
+       /sbin/hotplug2 --no-persistent --coldplug --max-children 1
 fi
 mkdir -p /dev/pts
 mount none /dev/pts -t devpts
index 312cac5076ff15ce783c4b507a82942865c633e0..11d93427963a1d2f3c80d18f74defe0aa7f5b3cf 100755 (executable)
@@ -36,7 +36,7 @@ else
        mount -t tmpfs tmpfs /dev -o size=512K
        mknod /dev/console c 5 1
        mkdir /dev/shm
-       /sbin/hotplug2 --no-persistent --coldplug
+       /sbin/hotplug2 --no-persistent --coldplug --max_children 1
        M0=/dev/ptmx
        M1=/dev/ptmx
 fi
index af397d9abbc72d700dbc69cbfb44d8309a1abc35..9f595c0f9534c1ffe74d0d42478b92a0a15f0fd0 100755 (executable)
@@ -12,7 +12,7 @@ else
        mknod /dev/console c 5 1
        mkdir /dev/pts
        mkdir /dev/shm
-       /sbin/hotplug2 --no-persistent --coldplug
+       /sbin/hotplug2 --no-persistent --coldplug --max_children 1
 fi
 
 mount none /dev/pts -t devpts