projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use hotplug2 for serializing hotplug events on 2.6
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
brcm-2.4
/
base-files
/
default
/
etc
/
preinit
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..4513d6382d69f99954fd52156dd66a02c5161ae0 100755
(executable)
--- 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
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
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
+ /sbin/hotplug2 --no-persistent --coldplug
--set-rules-file /etc/hotplug2-init.rules
M0=/dev/ptmx
M1=/dev/ptmx
M0=/dev/ptmx
M1=/dev/ptmx
+ HOTPLUG=
fi
mkdir -p /dev/pts
mount none /dev/pts -t devpts
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
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
ifconfig $ifname 0.0.0.0 down