projects
/
genkernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532dd7a
)
No longer have directory /sys/bus/usb/drivers/usb-storage/module set FORCE_slowusb
author
Fabio Erculiani
<lxnay@gentoo.org>
Fri, 7 Jan 2011 03:35:25 +0000
(
04:35
+0100)
committer
Sebastian Pipping
<sebastian@pipping.org>
Fri, 7 Jan 2011 03:35:25 +0000
(
04:35
+0100)
defaults/initrd.scripts
patch
|
blob
|
history
diff --git
a/defaults/initrd.scripts
b/defaults/initrd.scripts
index 2b6834ee601eeffe78c555d015726a4df82579df..f9e792701bd92ceaa2514fbb25fa5e5871b55106 100755
(executable)
--- a/
defaults/initrd.scripts
+++ b/
defaults/initrd.scripts
@@
-411,10
+411,16
@@
setup_hotplug() {
}
check_slowusb() {
+ local usb_storage_dir="/sys/bus/usb/drivers/usb-storage"
+ if [ ! -d "${usb_storage_dir}" ]
+ then
+ return
+ fi
[ "${DO_slowusb}" ] || \
- for
dir in /sys/bus/usb/drivers/usb-storage
/*
+ for
x in "${usb_storage_dir}"
/*
do
- [ -d "${dir}" ] && FORCE_slowusb="1"
+ [ -d "${x}" ] && [ "${x}" != "${usb_storage_dir}/module" ] \
+ && FORCE_slowusb="1"
done
}