diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-10 16:47:52 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-13 19:01:23 +0200 |
commit | 4cfa63edc075cf435499e9944ce116081fd92ab3 (patch) | |
tree | a74112650191fe8a5f711db91df95e9186b08f08 | |
parent | 04a8d3f4530f6f0c81b4784121aa7d9c66342df8 (diff) | |
download | openwrt-4cfa63edc075cf435499e9944ce116081fd92ab3.tar.gz openwrt-4cfa63edc075cf435499e9944ce116081fd92ab3.tar.bz2 openwrt-4cfa63edc075cf435499e9944ce116081fd92ab3.zip |
wwan: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rwxr-xr-x | package/network/utils/wwan/files/wwan.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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) |