projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44ebef7
)
Limit the number of hotplug childrens
author
Florian Fainelli
<florian@openwrt.org>
Sun, 1 Apr 2007 18:30:32 +0000
(18:30 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Sun, 1 Apr 2007 18:30:32 +0000
(18:30 +0000)
SVN-Revision: 6804
package/base-files/files/etc/init.d/boot
patch
|
blob
|
history
package/base-files/files/sbin/mount_root
patch
|
blob
|
history
target/linux/brcm-2.4/base-files/default/etc/preinit
patch
|
blob
|
history
target/linux/generic-2.6/files/init
patch
|
blob
|
history
diff --git
a/package/base-files/files/etc/init.d/boot
b/package/base-files/files/etc/init.d/boot
index c644b2fec2d9ccf0c817fffbcc0eea84e65df08c..0d7e11ceddb051f27bb7bf5da12cafd3201d204a 100755
(executable)
--- 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
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/*
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 7b89e8f3f69c7115ab0bfc5bdc2dfac79392130b..80078b51647ffd4404227e85c6e301a22de086cb 100755
(executable)
--- 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
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
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 312cac5076ff15ce783c4b507a82942865c633e0..11d93427963a1d2f3c80d18f74defe0aa7f5b3cf 100755
(executable)
--- 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
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
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 af397d9abbc72d700dbc69cbfb44d8309a1abc35..9f595c0f9534c1ffe74d0d42478b92a0a15f0fd0 100755
(executable)
--- 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
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
fi
mount none /dev/pts -t devpts