2
0
forked from Ivasoft/openwrt

kirkwood: add support for Linksys EA4500

Support is added only for kernel 3.14 - do not show it until
the switch is made.

Following uboot env changes are needed to make it work on stock uboot:
This commit is contained in:
Luka Perkov
2014-05-28 21:43:39 +00:00
parent 95c615262c
commit 4122af10f9
5 changed files with 203 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2012-2013 OpenWrt.org
# Copyright (C) 2012-2014 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
@@ -14,6 +14,10 @@ case "`cat /proc/device-tree/model`" in
ucidef_set_led_default "health" "status:green:health" "1"
ucidef_set_led_default "fault" "status:orange:fault" "1"
;;
"Linksys EA4500")
ucidef_set_led_default "health" "ea4500:white:health" "1"
ucidef_set_led_default "pulse" "ea4500:white:pulse" "1"
;;
*)
;;
esac

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2012-2013 OpenWrt.org
# Copyright (C) 2012-2014 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
@@ -37,6 +37,9 @@ case "`cat /proc/device-tree/model`" in
"Cloud Engines Pogoplug E02")
set_lan_dhcp "eth0"
;;
"Linksys EA4500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
*)
ucidef_set_interface_lan "eth0"
;;