From 4cfa63edc075cf435499e9944ce116081fd92ab3 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 10 May 2020 16:47:52 +0200 Subject: [PATCH] wwan: replace backticks by $(...) This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler --- package/network/utils/wwan/files/wwan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/utils/wwan/files/wwan.sh b/package/network/utils/wwan/files/wwan.sh index 1ffb94a92b..9907195e6c 100755 --- a/package/network/utils/wwan/files/wwan.sh +++ b/package/network/utils/wwan/files/wwan.sh @@ -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) -- 2.25.1