aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-04-01 18:30:32 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-04-01 18:30:32 +0000
commit2266aad2ec3cadc91d8e8d3081b486695bcc8bf7 (patch)
tree1df06d59fce161a157159f5cc1d874a5a58af031
parent6cfc172b6108950522ab21d686ce09e04006486c (diff)
downloadupstream-2266aad2ec3cadc91d8e8d3081b486695bcc8bf7.tar.gz
upstream-2266aad2ec3cadc91d8e8d3081b486695bcc8bf7.tar.bz2
upstream-2266aad2ec3cadc91d8e8d3081b486695bcc8bf7.zip
Limit the number of hotplug childrens
SVN-Revision: 6804
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot4
-rwxr-xr-xpackage/base-files/files/sbin/mount_root2
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/default/etc/preinit2
-rwxr-xr-xtarget/linux/generic-2.6/files/init2
4 files changed, 5 insertions, 5 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index c644b2fec2..0d7e11cedd 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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/*
diff --git a/package/base-files/files/sbin/mount_root b/package/base-files/files/sbin/mount_root
index 7b89e8f3f6..80078b5164 100755
--- a/package/base-files/files/sbin/mount_root
+++ b/package/base-files/files/sbin/mount_root
@@ -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
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 312cac5076..11d9342796 100755
--- a/target/linux/brcm-2.4/base-files/default/etc/preinit
+++ b/target/linux/brcm-2.4/base-files/default/etc/preinit
@@ -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
diff --git a/target/linux/generic-2.6/files/init b/target/linux/generic-2.6/files/init
index af397d9abb..9f595c0f95 100755
--- a/target/linux/generic-2.6/files/init
+++ b/target/linux/generic-2.6/files/init
@@ -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