mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mvebu: set default regdomain
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44908 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a8d8e2b250
commit
124ba26fbe
30
target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
Normal file
30
target/linux/mvebu/base-files/etc/uci-defaults/03_wireless
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2015 OpenWrt.org
|
||||
#
|
||||
|
||||
[ ! -e /etc/config/wireless ] && exit 0
|
||||
|
||||
. /lib/mvebu.sh
|
||||
|
||||
board=$(mvebu_board_name)
|
||||
|
||||
case "$board" in
|
||||
armada-xp-mamba)
|
||||
SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
|
||||
case "$SKU" in
|
||||
US)
|
||||
REGD=US
|
||||
;;
|
||||
EU)
|
||||
REGD=DE
|
||||
;;
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user