summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-12-23 14:43:35 +0000
committerJohn Crispin <john@openwrt.org>2015-12-23 14:43:35 +0000
commit772f9d4e32f326d94050da157d108f7f97961c5f (patch)
treee85085e84a6f0945c6da35162b88cdfbad804482 /target/linux/ar71xx/base-files/lib
parent4ea610da74fd384faeb6313c783f16451872734b (diff)
downloadmaster-31e0f0ae-772f9d4e32f326d94050da157d108f7f97961c5f.tar.gz
master-31e0f0ae-772f9d4e32f326d94050da157d108f7f97961c5f.tar.bz2
master-31e0f0ae-772f9d4e32f326d94050da157d108f7f97961c5f.zip
ar71xx: Add support for AirTight Networks C-55
This patch is to add support for the AirTight Networks C-55 Access Point Signed-off-by: Chris R Blake <chrisrblake93@gmail.com> SVN-Revision: 47973
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx5
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
3 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index dd327fbc7f..46e631110c 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -414,6 +414,9 @@ ar71xx_board_detect() {
*CAP324)
name="cap324"
;;
+ *C-55)
+ name="c-55"
+ ;;
*CAP4200AG)
name="cap4200ag"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
index a9f4bf5244..39da3090f8 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx
@@ -22,6 +22,10 @@ fetch_mac_from_mtd() {
preinit_set_mac_address() {
case $(ar71xx_board_name) in
+ c-55)
+ mac_lan=$(mtd_get_mac_binary art 0)
+ [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+ ;;
dir-615-c1)
fetch_mac_from_mtd config lan_mac wan_mac
echo 1 > /sys/class/leds/dir-615-c1:green:wancpu/brightness
@@ -49,4 +53,3 @@ preinit_set_mac_address() {
}
boot_hook_add preinit_main preinit_set_mac_address
-
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 51ca7f796e..e8998f4c58 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -204,6 +204,7 @@ platform_check_image() {
ap81 | \
ap83 | \
ap132 | \
+ c-55 | \
cf-e316n-v2 | \
dgl-5500-a1 |\
dhp-1565-a1 |\