From: Heiko Z. <he...@zu...> - 2004-04-09 13:11:16
|
> On Friday 09 April 2004 03:01, Heiko Zuerker wrote: >> Roland Pabel wrote: >> > On Friday 09 April 2004 02:14, Heiko Zuerker wrote: >> >>Roland Pabel wrote: >> >>>Hi, > [...] >> >> It would be great if everybody could test it, especially if you use a >> usb storage device. > Looks like I did that test wrong. It only 'worked for me'(tm) because the > module was never loaded. When loaded but listed as unused, the test > evaluates > to true and it sleeps. When loaded and used, it will fail and not sleep. > I think a loaded usb-storage module should be enough reason for the sleep, > so > shorten the test to: > if [ `lsmod | grep -c "^usb-storage"` != 0 ]; then Ah wait a minute, I thought usb-storage is directly compiled into the kernel.... (Can't verify right now) -- Regards Heiko Zuerker http://www.devil-linux.org |