slitaz-tools rev 430

tazhw: no usb support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 22 15:05:34 2010 +0100 (2010-02-22)
parents 77e6883bfa73
children f8bb0d243acf
files tinyutils/tazhw
line diff
     1.1 --- a/tinyutils/tazhw	Tue Feb 16 21:53:30 2010 +0100
     1.2 +++ b/tinyutils/tazhw	Mon Feb 22 15:05:34 2010 +0100
     1.3 @@ -110,7 +110,7 @@
     1.4  # Detect all USB devices.
     1.5  detect_usb_devices()
     1.6  {
     1.7 -	if [ ! -s /var/lib/detected-usb-modules ]; then
     1.8 +	if [ -f /proc/bus/usb/device -a ! -s /var/lib/detected-usb-modules ]; then
     1.9  		rm -f /var/lib/detected-usb-modules
    1.10  		cat /proc/bus/usb/devices | grep "Vendor" | while read line ; do
    1.11  			ID=`echo "$line" | awk '{ print $2,$3 }' | sed 's/ /   /' | \