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.

18 lines
485 B
Plaintext

4 years ago
#!/bin/sh
. $MIGTEST/lib/migration/migration.sh
. /lib/functions.sh
wireless_change_chiper() {
local cfg="$1"
config_get encryption "$cfg" encryption
[ "$encryption" = "psk-mixed+tkip+ccmp" ] && uci_set wireless "$cfg" encryption "psk-mixed"
}
$LOG_TOOL "downgrade from v2.2.2 to v2.1.0"
config_load wireless
config_foreach wireless_change_chiper wifi-iface
[ "$($UCI_TOOL changes wireless | wc -l)" = "0" ] || $UCI_TOOL commit wireless
exit 0
~