This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
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 " ]
"${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)