wwan: replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 10 May 2020 14:47:52 +0000 (16:47 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 May 2020 17:01:23 +0000 (19:01 +0200)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/utils/wwan/files/wwan.sh

index 1ffb94a92b8c59f09fffb7547019fdce370e5689..9907195e6c4654ae0da852b0f8420761eb610e42 100755 (executable)
@@ -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)