summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-02-12 14:39:26 +0000
committerLuka Perkov <luka@openwrt.org>2015-02-12 14:39:26 +0000
commit5cce8f9a0fe6a06011b1c092e674e25acd1b7dff (patch)
tree8461545a533526cd914c416e7c38f5807d8231c0 /target/linux/kirkwood/base-files
parentdbfb21ee900c5d6ac39ec2e40df3545c3fa649a7 (diff)
downloadmtk-20170518-5cce8f9a0fe6a06011b1c092e674e25acd1b7dff.zip
mtk-20170518-5cce8f9a0fe6a06011b1c092e674e25acd1b7dff.tar.gz
mtk-20170518-5cce8f9a0fe6a06011b1c092e674e25acd1b7dff.tar.bz2
kirkwood: Seagate GoFlex Net
Add GoFlex Net "Board Name" , set and cleanup network default and LEDs. Remove kmod-rtc-marvell from default packages, as the GoFlex net does not have a RTC. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 44422
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rwxr-xr-x[-rw-r--r--]target/linux/kirkwood/base-files/etc/diag.sh5
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/01_leds4
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/02_network13
-rwxr-xr-xtarget/linux/kirkwood/base-files/lib/kirkwood.sh4
4 files changed, 17 insertions, 9 deletions
diff --git a/target/linux/kirkwood/base-files/etc/diag.sh b/target/linux/kirkwood/base-files/etc/diag.sh
index b2bb583..29445d5 100644..100755
--- a/target/linux/kirkwood/base-files/etc/diag.sh
+++ b/target/linux/kirkwood/base-files/etc/diag.sh
@@ -6,6 +6,11 @@
get_status_led() {
case $(kirkwood_board_name) in
+ dockstar|\
+ goflexnet|\
+ pogo_e02)
+ status_led="status:orange:fault"
+ ;;
ea4500)
status_led="ea4500:white:health"
;;
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
index ba4d569..0f7a906 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
@@ -20,6 +20,10 @@ case "$board" in
ucidef_set_led_default "health" "health" "ea4500:white:health" "1"
ucidef_set_led_default "pulse" "pulse" "ea4500:white:pulse" "1"
;;
+"goflexnet")
+ ucidef_set_led_default "health" "health" "status:green:health" "1"
+ ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
+ ;;
"ib62x0")
ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
index 540c8c3..4ed0ab4 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@ -28,15 +28,10 @@ board=$(kirkwood_board_name)
ucidef_set_interface_loopback
case "$board" in
-"dockstar")
- set_lan_dhcp "eth0"
- ;;
-"iconnect")
- set_lan_dhcp "eth0"
- ;;
-"ib62x0")
- set_lan_dhcp "eth0"
- ;;
+"dockstar"|\
+"goflexnet"|\
+"iconnect"|\
+"ib62x0"|\
"pogo_e02")
set_lan_dhcp "eth0"
;;
diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh
index 962b09a..c088581 100755
--- a/target/linux/kirkwood/base-files/lib/kirkwood.sh
+++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh
@@ -17,6 +17,10 @@ kirkwood_board_detect() {
name="dockstar"
;;
+ "Seagate GoFlex Net")
+ name="goflexnet"
+ ;;
+
"Iomega Iconnect")
name="iconnect"
;;