You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
#!/bin/sh
|
|
. $MIGTEST/lib/migration/migration.sh
|
|
. /lib/ar71xx.sh
|
|
|
|
$LOG_TOOL "upgrade from v5.0.2 to v5.0.3"
|
|
|
|
SON_CFG_OLD=wifi_son.son
|
|
SON_CFG_NEW=wireless.son
|
|
|
|
BOARD="$(ar71xx_board_name)"
|
|
|
|
case "$BOARD" in
|
|
dlan-pro-1200-ac|\
|
|
dlan-pro-1200-n|\
|
|
dlan-1000-ac|\
|
|
dlan-550-wifi)
|
|
uci set $SON_CFG_NEW="son"
|
|
VALUE=$(uci get $SON_CFG_OLD.enabled)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.enabled="$VALUE"
|
|
VALUE=$(uci get $SON_CFG_OLD.airtimefairness)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.airtimefairness="$VALUE"
|
|
if [ "$BOARD" = "dlan-550-wifi" -o "$BOARD" = "dlan-pro-1200-n" ]; then
|
|
uci set $SON_CFG_NEW.bandsteering="0"
|
|
else
|
|
VALUE=$(uci get $SON_CFG_OLD.bandsteering)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.bandsteering="$VALUE"
|
|
fi
|
|
VALUE=$(uci get $SON_CFG_OLD.ieee80211k)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.ieee80211k="$VALUE"
|
|
ALUE=$(uci get $SON_CFG_OLD.ieee80211v)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.ieee80211v="$VALUE"
|
|
VALUE=$(uci get $SON_CFG_OLD.ieee80211r)
|
|
[ -n "$VALUE" ] && uci set $SON_CFG_NEW.ieee80211r="$VALUE"
|
|
uci commit wireless
|
|
# remove old config
|
|
rm /etc/config/wifi_son
|
|
;;
|
|
esac
|
|
|
|
exit 0
|