aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-10 16:47:52 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-13 19:01:23 +0200
commit4cfa63edc075cf435499e9944ce116081fd92ab3 (patch)
treea74112650191fe8a5f711db91df95e9186b08f08 /package
parent04a8d3f4530f6f0c81b4784121aa7d9c66342df8 (diff)
downloadupstream-4cfa63edc075cf435499e9944ce116081fd92ab3.tar.gz
upstream-4cfa63edc075cf435499e9944ce116081fd92ab3.tar.bz2
upstream-4cfa63edc075cf435499e9944ce116081fd92ab3.zip
wwan: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/utils/wwan/files/wwan.sh2
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)