lantiq: add Netgear DM200 support
[openwrt/openwrt.git] / target / linux / lantiq / base-files / etc / uci-defaults / 01_led_migration
index 130694a62b2c60a5a320abcd5477a024b5ba9937..6ff4355853e2a7037630428f9554076e1bfd12cf 100644 (file)
@@ -35,6 +35,20 @@ do_led_update_sysfs()
        done;
 }
 
+do_internet_led_rename()
+{
+       config_load system
+
+       [ -n $(config_get led_internet name) ] || return
+       [ -z $(config_get led_dsl name) ] || return
+
+       uci rename system.led_internet=led_dsl
+       uci set system.led_dsl.name=dsl
+
+       LED_OPTIONS_CHANGED=1
+       logger -t led-migration "internet led renamed to dsl"
+}
+
 migrate_leds()
 {
        config_load system
@@ -42,6 +56,19 @@ migrate_leds()
 }
 
 case "$(board_name)" in
+ARV452CQW|\
+ARV7510PW22|\
+ARV7519RW22|\
+ARV752DPW|\
+ARV752DPW22|\
+ASL56026|\
+BTHOMEHUBV2B|\
+BTHOMEHUBV3A|\
+BTHOMEHUBV5A|\
+FRTZ7360SL|\
+VG3503J)
+       do_internet_led_rename
+       ;;
 DGN3500*)
        migrate_leds "dgn3500:blue:wireless=dgn3500:green:wireless"
        ;;