diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-08 10:25:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-08 10:25:58 +0000 |
commit | ba1c1e901615fd7cefc0966bbdd9d0d81581ae95 (patch) | |
tree | 2fd53b766baf1dd34bafa55593c374c85eac30f2 /package/base-files/files | |
parent | 732abc44ccb1641889ad7824bfc8aa6295e435f1 (diff) | |
download | mtk-20170518-ba1c1e901615fd7cefc0966bbdd9d0d81581ae95.zip mtk-20170518-ba1c1e901615fd7cefc0966bbdd9d0d81581ae95.tar.gz mtk-20170518-ba1c1e901615fd7cefc0966bbdd9d0d81581ae95.tar.bz2 |
base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others (#9352)
SVN-Revision: 26848
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 5 |
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 c3019df..357ae3f 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() { |