slitaz-tools rev 411
tazhw: fix detect_usb_devices
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Tue Nov 24 12:23:06 2009 +0000 (2009-11-24) |
parents | 3aacdb8b9205 |
children | 235c803f046a |
files | tinyutils/tazhw |
line diff
1.1 --- a/tinyutils/tazhw Tue Nov 24 12:22:18 2009 +0100 1.2 +++ b/tinyutils/tazhw Tue Nov 24 12:23:06 2009 +0000 1.3 @@ -122,7 +122,7 @@ 1.4 sed 's/Vendor=/0x/' | sed 's/ProdID=/0x/'` 1.5 if grep -q "$ID" /lib/modules/*-slitaz/modules.usbmap; then 1.6 mod=`grep "$ID" /lib/modules/*-slitaz/modules.usbmap | \ 1.7 - awk '{ print $1 }'` 1.8 + awk '{ print $1 }'| cut -d: -f2` 1.9 prod=`grep -A 2 "$line" /proc/bus/usb/devices | grep Product | \ 1.10 cut -d "=" -f 2` 1.11 echo "$prod"