diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-04 20:31:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-04 20:31:53 +0000 |
commit | a44c286fdb6478992a0d99cf886fbdb6a67ea301 (patch) | |
tree | 1ce5c0323b48da12b74cfcfb750a7f7a5307c680 /package/base-files/files/etc | |
parent | 0a056c9743749762a5d93463ecfd6f82137884db (diff) | |
download | upstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.tar.gz upstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.tar.bz2 upstream-a44c286fdb6478992a0d99cf886fbdb6a67ea301.zip |
nuke mdev and replace it with hotplug2 :)
SVN-Revision: 6512
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-x | package/base-files/files/etc/functions.sh | 2 | ||||
-rw-r--r-- | package/base-files/files/etc/hotplug2.rules | 7 | ||||
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 7 | ||||
-rw-r--r-- | package/base-files/files/etc/mdev.conf | 5 |
4 files changed, 13 insertions, 8 deletions
diff --git a/package/base-files/files/etc/functions.sh b/package/base-files/files/etc/functions.sh index c29ae772ac..4d84bb81e0 100755 --- a/package/base-files/files/etc/functions.sh +++ b/package/base-files/files/etc/functions.sh @@ -12,7 +12,7 @@ _C=0 NO_EXPORT=1 hotplug_dev() { - env -i ACTION=$1 INTERFACE=$2 /sbin/hotplug net + env -i ACTION=$1 INTERFACE=$2 /sbin/hotplug-call net } append() { diff --git a/package/base-files/files/etc/hotplug2.rules b/package/base-files/files/etc/hotplug2.rules new file mode 100644 index 0000000000..d2a931adcf --- /dev/null +++ b/package/base-files/files/etc/hotplug2.rules @@ -0,0 +1,7 @@ +DEVPATH is set { + makedev /dev/%DEVICENAME% 0644 +} + +MODALIAS is set { + exec /sbin/modprobe -q %MODALIAS% ; +} diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index db7ec8cc3a..ed5e7d8ba5 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -20,8 +20,11 @@ start() { # manually trigger hotplug before loading modules for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do - /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net + /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug-call net done - + + /sbin/hotplug2 --persistent & + echo /sbin/hotplug-call > /proc/sys/kernel/hotplug + load_modules /etc/modules.d/* } diff --git a/package/base-files/files/etc/mdev.conf b/package/base-files/files/etc/mdev.conf deleted file mode 100644 index 89355830f0..0000000000 --- a/package/base-files/files/etc/mdev.conf +++ /dev/null @@ -1,5 +0,0 @@ -null 0:0 777 -zero 0:0 666 -console 0:5 0600 -tty 0:5 0660 -ttyS* 0:20 640 |