slitaz-tools diff tinyutils/hwsetup @ rev 1031
Remove cat process
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 20 12:35:57 2019 +0200 (2019-10-20) |
parents | 491239328786 |
children |
line diff
1.1 --- a/tinyutils/hwsetup Tue Feb 26 08:26:53 2019 +0100 1.2 +++ b/tinyutils/hwsetup Sun Oct 20 12:35:57 2019 +0200 1.3 @@ -177,7 +177,7 @@ 1.4 count=1 1.5 1.6 # assume device to be in last 3 entries; use tac 1.7 - DEVICES_LIST=$(cat /proc/bus/usb/devices | grep ^[TDP] | \ 1.8 + DEVICES_LIST=$(grep ^[TDP] /proc/bus/usb/devices | \ 1.9 grep -B1 -A1 "$PATTERN" | grep -i vendor | awk ' { print $2,$3 } ' | \ 1.10 sed 's/ / /'|sed 's/Vendor=//' | sed 's/ProdID=//' | tail -3) 1.11 _ 'Detected USB Device : Vendor : Product'