tazpanel rev 563
hardware: show usb device name
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 24 17:02:38 2016 +0100 (2016-01-24) |
parents | 6d2f77151dfa |
children | 536266417cae |
files | hardware.cgi |
line diff
1.1 --- a/hardware.cgi Tue Dec 29 16:13:21 2015 +0100 1.2 +++ b/hardware.cgi Sun Jan 24 17:02:38 2016 +0100 1.3 @@ -63,7 +63,7 @@ 1.4 echo "<tr><td>$b</td><td>${d%:}</td><td><a href=\"?lsusb=$id" 1.5 p=$(printf "class/usb_device/usbdev%d.%d" $b ${d%:}) 1.6 grep -qs 0 /sys/$p/device/authorized && id="<del>$id</del>" 1.7 - echo "\">$id</td><td>$name</td></tr>" 1.8 + echo "\">$id</td><td>${name:-$(cat /sys/$p/device/product)}</td></tr>" 1.9 done 1.10 echo "</tbody></table>" 1.11 }