mac80211: replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 10 May 2020 14:47:48 +0000 (16:47 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 May 2020 17:01:23 +0000 (19:01 +0200)
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
package/kernel/mac80211/scripts/import-backports.sh

index 88751ce3ccea99f32ebd39a9b34012779274a8ae..7ca138c68c57fcb5ddc7d03d66dc9625d5b0b138 100644 (file)
@@ -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
index d056eb6d047f0a1fb32d792a9aa23a75922764e0..35aa411e6cfe0c0bb5e04ad86ef61f513d71f663 100755 (executable)
@@ -70,7 +70,7 @@ get_next() {
        done | tail -n1
 }
 
-CUR=`get_next`
+CUR=$(get_next)
 CUR="${CUR:-$BASE}"
 
 while [ -n "$1" ]; do