tazpanel rev 565
hardware: show usb device name (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 24 17:37:57 2016 +0100 (2016-01-24) |
parents | 536266417cae |
children | 0a48c6e8d1df |
files | hardware.cgi |
line diff
1.1 --- a/hardware.cgi Sun Jan 24 17:11:23 2016 +0100 1.2 +++ b/hardware.cgi Sun Jan 24 17:37:57 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:-$(sed 's/ .*//' $sys/$p/device/manufacturer)$(cat /sys/$p/device/product)}</td></tr>" 1.8 + echo "\">$id</td><td>${name:-$(sed 's/ .*//' $sys/$p/device/manufacturer) $(cat /sys/$p/device/product)}</td></tr>" 1.9 done 1.10 echo "</tbody></table>" 1.11 }