aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-20 19:03:26 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-20 19:03:26 +0000
commite4f939449929b207fb44c5b6b7e3c99ca38c3660 (patch)
treedaff4f26fee9dd631cada9ff203ce20c780e1287 /target/linux/ar71xx/base-files/etc
parentb310e00f1c09dfa7576063bcc4d1f1b7f70f5aea (diff)
downloadupstream-e4f939449929b207fb44c5b6b7e3c99ca38c3660.tar.gz
upstream-e4f939449929b207fb44c5b6b7e3c99ca38c3660.tar.bz2
upstream-e4f939449929b207fb44c5b6b7e3c99ca38c3660.zip
ar71xx: Bitmain Antminer S1 & S3 cleanup
Sets the LEDs to boardname:color:led-name Sets the LAN to eth0 Corrects the profile names in the Makefile and changes tabs to spaces in the Makefile 'define Device/' like the other devices. Other corrections such as the Machine Name and HWIDs Signed-off-by: L. D. Pinney <ldpinney@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47242 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh6
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds10
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network4
3 files changed, 11 insertions, 9 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 9e3031345a..89fe53cefa 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -12,9 +12,11 @@ get_status_led() {
all0305)
status_led="eap7660d:green:ds4"
;;
- antminer-s1|\
+ antminer-s1)
+ status_led="antminer-s1:green:system"
+ ;;
antminer-s3)
- status_led="bitmain:green:system"
+ status_led="antminer-s3:green:system"
;;
ap132)
status_led="ap132:green:status"
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 88e966da12..5241db277c 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -32,14 +32,14 @@ all0315n)
;;
antminer-s1)
- ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0"
- ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
+ ucidef_set_led_default "sys" "SYS" "antminer-s1:green:sys" "0"
+ ucidef_set_led_wlan "wlan" "WLAN" "antminer-s1:green:wlan" "phy0tpt"
;;
antminer-s3)
- ucidef_set_led_wlan "wlan" "WLAN" "bitmain:green:wlan" "phy0tpt"
- ucidef_set_led_default "sys" "SYS" "bitmain:green:sys" "0"
- ucidef_set_led_default "lan" "LAN" "bitmain:yellow:lan" "0"
+ ucidef_set_led_wlan "wlan" "WLAN" "antminer-s3:green:wlan" "phy0tpt"
+ ucidef_set_led_default "sys" "SYS" "antminer-s3:green:sys" "0"
+ ucidef_set_led_default "lan" "LAN" "antminer-s3:yellow:lan" "0"
;;
ap113)
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index cbd7b13031..5c38c547c9 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -322,6 +322,8 @@ dlan-pro-1200-ac)
;;
all0305 |\
+antminer-s1 |\
+antminer-s3 |\
aw-nr580 |\
bullet-m |\
cap4200ag |\
@@ -366,8 +368,6 @@ wp543)
ucidef_set_interface_lan "eth0"
;;
-antminer-s1 |\
-antminer-s3 |\
dir-505-a1)
ucidef_set_interface_lan "eth1"
;;