nuke mdev and replace it with hotplug2 :)
SVN-Revision: 6512
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
|
||||
[ -x /sbin/mdev -a -n "$ACTION" -a -n "$DEVPATH" ] && /sbin/mdev "$@"
|
||||
|
||||
# bypass the normal hotplug path for firmware loading
|
||||
# would otherwise cause problems with drivers like bcm43xx
|
||||
[ "$1" = "firmware" -a "$ACTION" = "add" ] && {
|
||||
@@ -21,7 +21,7 @@ config_get proto "$cfg" proto
|
||||
|
||||
config_get iface "$cfg" device
|
||||
[ "$proto" = "static" ] && {
|
||||
env -i ACTION="ifdown" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug "iface" &
|
||||
env -i ACTION="ifdown" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
|
||||
}
|
||||
|
||||
# call interface stop handler
|
||||
|
||||
@@ -12,7 +12,7 @@ else
|
||||
mount -t tmpfs tmpfs /dev -o size=512K
|
||||
mknod /dev/console c 5 1
|
||||
mkdir /dev/shm
|
||||
/sbin/mdev -s
|
||||
/sbin/hotplug2 --no-persistent --coldplug
|
||||
fi
|
||||
mkdir -p /dev/pts
|
||||
mount none /dev/pts -t devpts
|
||||
|
||||
Reference in New Issue
Block a user