#!/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 ~