From: Roland P. <pa...@ta...> - 2004-04-09 13:36:55
|
On Friday 09 April 2004 15:08, Heiko Zuerker wrote: > > 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) You're right. Take that patch out again... I'll have a look at it over eastern, there must be some way to detect if usb-storage is used or not... Roland -- ICQ UIN 49339118 Linux Counter #88774 GPG-Key 1024D/59C6AFA6 2003-02-07 Roland Pabel <ro...@pa...> |