openwrtv3/target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
Imre Kaloz 8bb23cfb66 mvebu: add support for the Linksys WRT1900ACS (Shelby)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 47164
2015-10-08 10:01:30 +00:00

39 lines
625 B
Bash

#!/bin/sh
#
# Copyright (C) 2015 OpenWrt.org
#
[ ! -e /etc/config/wireless ] && exit 0
. /lib/mvebu.sh
board=$(mvebu_board_name)
case "$board" in
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby|armada-xp-linksys-mamba)
SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
case "$SKU" in
AP)
REGD=CN
;;
AU)
REGD=AU
;;
CA)
REGD=CA
;;
EU)
REGD=DE
;;
US)
REGD=US
;;
esac
uci get wireless.radio0.country || uci set wireless.radio0.country=$REGD
uci get wireless.radio1.country || uci set wireless.radio1.country=$REGD
;;
esac
uci commit wireless
exit 0