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

Adrian Schmutzler freifunk at adrianschmutzler.de
Sun May 10 10:47:52 EDT 2020


This replaces deprecated backticks by more versatile $(...) syntax.

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

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)
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list