|
From: Roland P. <pa...@ta...> - 2004-04-09 12:39:31
|
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 Roland -- ICQ UIN 49339118 Linux Counter #88774 GPG-Key 1024D/59C6AFA6 2003-02-07 Roland Pabel <ro...@pa...> |