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

Limit the number of hotplug childrens

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6804 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-04-01 18:30:32 +00:00
parent 2c4b9b9b69
commit a9d604c520
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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