kirkwood: add *plugs to uci-defaults
authorLuka Perkov <luka@openwrt.org>
Fri, 19 Dec 2014 11:05:13 +0000 (11:05 +0000)
committerLuka Perkov <luka@openwrt.org>
Fri, 19 Dec 2014 11:05:13 +0000 (11:05 +0000)
Set defaults health led to a timer heartbeet (200/800)
and populate network for:

- GuruplugServerPlus
- SheevaPlug
- SheevaPlug with eSATA

Signed-off-by: Gerald Kerma <dreagle@doukki.net>
SVN-Revision: 43752

target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
target/linux/kirkwood/base-files/etc/uci-defaults/02_network

index 41191f753588048c34af611f9b227264f48a258f..51fb4d81fcf1a69784cc3e1b9fa89fc6cc942f98 100644 (file)
@@ -28,6 +28,13 @@ case "$board" in
        ucidef_set_led_default "health" "status:green:health" "1"
        ucidef_set_led_default "fault" "status:orange:fault" "1"
        ;;
+"guruplug-server-plus")
+       ucidef_set_led_timer "health" "guruplug:red:health" "200" "800"
+       ;;
+"sheevaplug" | \
+"sheevaplug-esata")
+       ucidef_set_led_timer "health" "sheevaplug:blue:health" "200" "800"
+       ;;
 *)
        ;;
 esac
index 5b79687784012d0bdf41d0bba3ae5f44dab5458e..9fd68459246ef0e41a85f1a5edc5259e3de8cff7 100644 (file)
@@ -62,6 +62,13 @@ case "$board" in
        add_port_based_vlan "switch0" "1" "0 1 2 3 5"
        add_port_based_vlan "switch0" "2" "4 6"
        ;;
+"guruplug-server-plus")
+       set_lan_dhcp "eth0" "eth1"
+       ;;
+"sheevaplug" | \
+"sheevaplug-esata")
+       set_lan_dhcp "eth0"
+       ;;
 *)
        ucidef_set_interface_lan "eth0"
        ;;