X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/29cfba65a4873ba1215e6ebce9afb41abd1c5b8c..6f14855dac9eacab5ab88e866716376fcc8250cf:/package/base-files/files/etc/init.d/boot diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 7927af154..357ae3f31 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -74,12 +74,17 @@ start() { done # create /dev/root if it doesn't exist - [ -e /dev/root ] || { + [ -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 } 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() {