brcm63xx: Add userspace support for Sagemcom F@ST2704V2 ADSL router
authorJonas Gorski <jogo@openwrt.org>
Sat, 22 Feb 2014 11:16:33 +0000 (11:16 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sat, 22 Feb 2014 11:16:33 +0000 (11:16 +0000)
This adds userspace support for Sagemcom F@st 2704 router.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4215/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 39672

target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds [new file with mode: 0644]
target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
target/linux/brcm63xx/base-files/lib/brcm63xx.sh

diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds
new file mode 100644 (file)
index 0000000..6007e38
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+                                                                                                                                                                             
+. /lib/functions/uci-defaults.sh
+. /lib/brcm63xx.sh
+
+
+case "$board_name" in
+'F@ST2704V2')
+       ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
+       ;;
+esac
+
+ucidef_commit_leds
+
+exit 0
index d7f6c3a46d202abab964f8509274cffc64e6807a..087bce960d056f755feeea07e7494e3b08d0f1a2 100755 (executable)
@@ -80,7 +80,8 @@ DVG3810BN)
 96328A-1441N1 |\
 963281TAN |\
 963281T_TEF |\
-96368MVNgr)
+96368MVNgr |\
+"F@ST2704V2")
        ucidef_set_interface_lan "eth0.1"
        ucidef_add_switch "eth0" "1" "1"
        ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
index 7c449ae6adc11d7ab1e8eac296d2d6d431d28688..afe96249339b4dd556952ad0faa22dc70c70b9d5 100755 (executable)
@@ -121,6 +121,11 @@ brcm63xx_detect() {
                brcm63xx_has_reset_button="true"
                ifname=eth0
                ;;
+       'F@ST2704V2')
+               status_led="F@ST2704V2:green:power"
+               brcm63xx_has_reset_button="true"
+               ifname=eth0
+               ;;
        *)
                ;;
        esac