From: Adrian Schmutzler Date: Sun, 10 May 2020 14:47:52 +0000 (+0200) Subject: wwan: replace backticks by $(...) X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4cfa63edc075cf435499e9944ce116081fd92ab3;p=openwrt%2Fstaging%2Fynezz.git wwan: replace backticks by $(...) This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler --- 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)