projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a8d3f
)
wwan: replace backticks by $(...)
author
Adrian Schmutzler
<
[email protected]
>
Sun, 10 May 2020 14:47:52 +0000
(16:47 +0200)
committer
Adrian Schmutzler
<
[email protected]
>
Wed, 13 May 2020 17:01:23 +0000
(19:01 +0200)
This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <
[email protected]
>
package/network/utils/wwan/files/wwan.sh
patch
|
blob
|
history
diff --git
a/package/network/utils/wwan/files/wwan.sh
b/package/network/utils/wwan/files/wwan.sh
index 1ffb94a92b8c59f09fffb7547019fdce370e5689..9907195e6c4654ae0da852b0f8420761eb610e42 100755
(executable)
--- 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)