ipq806x: Replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 24 Jul 2019 22:43:00 +0000 (00:43 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 31 Aug 2019 10:08:23 +0000 (12:08 +0200)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
target/linux/ipq806x/base-files/lib/upgrade/linksys.sh

index 4b476e56ae271712bb9d1104a7a9f161b8d23d8b..f0256fd259e29c6b13ea1a8002ca147ea90d0e2c 100644 (file)
@@ -13,13 +13,13 @@ OPATH=${DEVPATH##/devices/platform/}
 OPATH=${OPATH%%/ieee*}
 
 # 10 radios is enough for anyone!
-for i in `seq 0 9`;
+for i in $(seq 0 9);
   do
-  BUS=`uci get wireless.@wifi-device[$i].path`
+  BUS=$(uci get wireless.@wifi-device[$i].path)
   if [ "$BUS " == "$OPATH " ]
       then
       PHYNAME=${DEVPATH##*ieee80211/}
-      NPHYNAME=`uci get wireless.@wifi-device[$i].phyname`
+      NPHYNAME=$(uci get wireless.@wifi-device[$i].phyname)
       if [ "$NPHYNAME " != " " ]
           then
           if [ "$PHYNAME " != "$NPHYNAME " ]
index 2aa6e0f08c88cbf02fd31fa433b76bc7ee85b63c..a957bf114931496c1967ce5e9ca8a138624f5e37 100644 (file)
@@ -21,7 +21,7 @@ linksys_get_target_firmware() {
                        "${cur_boot_part}" "${mtd_ubi0}"
        fi
 
-       cur_boot_part=`/usr/sbin/fw_printenv -n boot_part`
+       cur_boot_part=$(/usr/sbin/fw_printenv -n boot_part)
 
        case $cur_boot_part in
        1)