mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
wwan: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
04a8d3f453
commit
4cfa63edc0
@ -58,7 +58,7 @@ proto_wwan_setup() {
|
||||
fi
|
||||
else
|
||||
echo "wwan[$$]" "Searching for a valid wwan usb device..."
|
||||
for a in `ls /sys/bus/usb/devices`; do
|
||||
for a in $(ls /sys/bus/usb/devices); do
|
||||
local vendor product
|
||||
[ -z "$usb" -a -f /sys/bus/usb/devices/$a/idVendor -a -f /sys/bus/usb/devices/$a/idProduct ] || continue
|
||||
vendor=$(cat /sys/bus/usb/devices/$a/idVendor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user