From 6f14855dac9eacab5ab88e866716376fcc8250cf Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 8 May 2011 10:25:58 +0000 Subject: [package] base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others (#9352) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26848 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/boot | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/base-files/files/etc/init.d') diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index c3019df04e..357ae3f31d 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -80,6 +80,11 @@ start() { } load_modules /etc/modules.d/* + + # 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