diff mbox series

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

Message ID 20200510144754.10751-4-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/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +-
 package/kernel/mac80211/scripts/import-backports.sh           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 88751ce3cc..7ca138c68c 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -1040,7 +1040,7 @@  list_phy_interfaces() {
 drv_mac80211_teardown() {
 	wireless_process_kill_all
 
-	for phy in `ls /sys/class/ieee80211/`; do
+	for phy in $(ls /sys/class/ieee80211/); do
 		mac80211_interface_cleanup "$phy"
 		uci -q -P /var/state revert wireless._${phy}
 	done
diff --git a/package/kernel/mac80211/scripts/import-backports.sh b/package/kernel/mac80211/scripts/import-backports.sh
index d056eb6d04..35aa411e6c 100755
--- a/package/kernel/mac80211/scripts/import-backports.sh
+++ b/package/kernel/mac80211/scripts/import-backports.sh
@@ -70,7 +70,7 @@  get_next() {
 	done | tail -n1
 }
 
-CUR=`get_next`
+CUR=$(get_next)
 CUR="${CUR:-$BASE}"
 
 while [ -n "$1" ]; do