From 4a8df0b66129c74d15b4ff99eb5b5b2b40aff56d Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 13 Mar 2012 09:18:30 +0000 Subject: base-files: remove old coldplugging hacks that are no longer necessary since the new main hotplug2 instance calls udevtrigger as well git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30916 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/boot | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'package/base-files/files') diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index c798df3c84..948a09e871 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -87,21 +87,11 @@ start() { --set-coldplug-cmd /sbin/udevtrigger \ --max-children 1 >/dev/null 2>&1 & - # the coldplugging of network interfaces needs to happen later, so we do it manually here - for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do - /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug-call net - done - # create /dev/root if it doesn't exist [ -e /dev/root -o -h /dev/root ] || { rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline) [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root } - - # another round of USB coldplugging to kick devices into operation which lacked drivers before - for dev in /sys/bus/usb/devices/*/uevent; do - [ -e "$dev" ] && echo -n add > "$dev" - done } stop() { -- cgit v1.2.3