mvebu: handle other SKUs as well

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45396 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Imre Kaloz 2015-04-12 15:04:14 +00:00
parent 867aa778f8
commit e926ef32b2
1 changed files with 11 additions and 2 deletions

View File

@ -13,12 +13,21 @@ case "$board" in
armada-xp-mamba) armada-xp-mamba)
SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p') SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
case "$SKU" in case "$SKU" in
US) AP)
REGD=US REGD=CN
;;
AU)
REGD=AU
;;
CA)
REGD=CA
;; ;;
EU) EU)
REGD=DE REGD=DE
;; ;;
US)
REGD=US
;;
esac esac
uci get wireless.radio0.country || uci set wireless.radio0.country=$REGD uci get wireless.radio0.country || uci set wireless.radio0.country=$REGD
uci get wireless.radio1.country || uci set wireless.radio1.country=$REGD uci get wireless.radio1.country || uci set wireless.radio1.country=$REGD