diff options
author | John Crispin <john@openwrt.org> | 2013-07-11 21:16:53 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-11 21:16:53 +0000 |
commit | 39531131a9186a7810b9f67e2694ccd6b65d14bd (patch) | |
tree | 88cd47e730aed042767b6e2c0522cedb2acccee6 /target/linux/ar71xx/base-files | |
parent | 182866ecdcd9468a04be19be9b5a10399496ba11 (diff) | |
download | mtk-20170518-39531131a9186a7810b9f67e2694ccd6b65d14bd.zip mtk-20170518-39531131a9186a7810b9f67e2694ccd6b65d14bd.tar.gz mtk-20170518-39531131a9186a7810b9f67e2694ccd6b65d14bd.tar.bz2 |
ar71xx: add carambola2 support
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37260
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 6 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index c9bcedd..2db8941 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -38,6 +38,12 @@ cap4200ag) ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt" ;; +carambola2) + ucidef_set_led_netdev "lan" "LAN" "carambola2:orange:eth0" "eth0" + ucidef_set_led_netdev "wan" "WAN" "carambola2:orange:eth1" "eth1" + ucidef_set_led_wlan "wlan" "WLAN" "carambola2:green:wlan" "phy0tpt" + ;; + db120) ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 05e1093..19f19e7 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -525,6 +525,9 @@ ar71xx_board_detect() { *EmbWir-Dorin-Router) name="ew-dorin-router" ;; + "8devices Carambola2"*) + name="carambola2" + ;; esac case "$machine" in diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 26b855f..9542295 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -133,7 +133,8 @@ platform_check_image() { wlae-ag300n | \ nbg460n_550n_550nh | \ unifi | \ - unifi-outdoor ) + unifi-outdoor | \ + carambola2 ) [ "$magic" != "2705" ] && { echo "Invalid image type." return 1 |