summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-08 10:25:58 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-08 10:25:58 +0000
commit6f14855dac9eacab5ab88e866716376fcc8250cf (patch)
tree7362e62caaa0542f0058b07bd14e4ff3ff46e259 /package/base-files/files/etc
parent26205d18e8788d3cab78e980aea09d10f10cb7d7 (diff)
[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
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index c3019df04..357ae3f31 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() {