diff mbox series

[OpenWrt-Devel,08/10] wwan: replace backticks by $(...)

Message ID 20200510144754.10751-8-freifunk@adrianschmutzler.de
State Accepted
Delegated to: Adrian Schmutzler
Headers show
Series [OpenWrt-Devel,01/10] ltq-vdsl-app: replace backticks by $(...) | expand

Commit Message

Adrian Schmutzler May 10, 2020, 2:47 p.m. UTC
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 package/network/utils/wwan/files/wwan.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)