lantiq: BT Home Hub 2B support - userspace
authorJohn Crispin <john@openwrt.org>
Thu, 3 Apr 2014 14:26:58 +0000 (14:26 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 3 Apr 2014 14:26:58 +0000 (14:26 +0000)
Basic userspace configuration for BT Home Hub 2B

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 40371

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

index e525ebdff21f08f3f14b04ab5c1733697c843d0d..70a14d9bd5533c1fb3da1adbf7c65d7899cce915 100644 (file)
@@ -23,6 +23,13 @@ case "$board" in
 VG3503J)
        ucidef_set_led_netdev "vdsl" "vdsl" "bt:green:dsl" "ptm0"
        ;;
+BTHOMEHUBV2B)
+       ucidef_set_led_default "power" "power" "soc:blue:power" "1"
+#      ucidef_set_led_wlan "wifi" "wifi" "soc:blue:wireless" "phy0radio"
+       ucidef_set_led_wlan "wifi" "wifi" "soc:blue:wireless" "phy0tpt"
+       ucidef_set_led_netdev "internet" "internet" "soc:blue:broadband" "nas0"
+       ucidef_set_led_usbdev "usb" "usb" "soc:blue:phone" "1-1"
+       ;;
 *)
        ;;
 esac
index 5768336f2a384357f051778b1aa3b5afc24454ec..428089ceb716c46e91e0ffc9cfcbf373b42a45e3 100644 (file)
@@ -135,6 +135,11 @@ ARV7519*)
        lan_mac=$(mtd_get_mac_binary boardconfig 22)
        wan_mac=$(macaddr_add "$lan_mac" 1)
        ;;
+
+BTHOMEHUBV2B)
+       lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+       wan_mac=$(macaddr_add "$lan_mac" 1)
+       ;;
 esac
 
 [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"