led_usb2="$(lantiq_get_dt_led usb2)"
[ -n "$led_usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "$led_usb2" "2-1"
-led_internet="$(lantiq_get_dt_led internet)"
-[ -n "$led_internet" ] && {
+led_dsl="$(lantiq_get_dt_led dsl)"
+[ -n "$led_dsl" ] && {
interface="nas0"
lantiq_is_vdsl_system && interface="ptm0"
- led_dsl="$(lantiq_get_dt_led dsl)"
- [ -n "$led_dsl" ] && {
- interface="pppoe-wan"
+ led_internet="$(lantiq_get_dt_led internet)"
+ if [ -n "$led_internet" ]; then
ucidef_set_led_default "dsl" "dsl" "$led_dsl" "0"
- }
-
- ucidef_set_led_netdev "internet" "internet" "$led_internet" "$interface"
+ ucidef_set_led_netdev "internet" "internet" "$led_internet" "pppoe-wan"
+ else
+ ucidef_set_led_netdev "dsl" "dsl" "$led_dsl" "$interface"
+ fi
}
board=$(board_name)
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
}
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"
;;
led-failsafe = &power_red;
led-running = &power_blue;
- led-internet = &dsl_blue;
+ led-dsl = &dsl_blue;
led-usb = &usb;
led-wifi = &wifi;
};
led-failsafe = &power;
led-running = &power;
- led-internet = &internet;
+ led-dsl = &internet;
led-usb = &umts;
led-wifi = &wlan;
};
led-failsafe = &power_green;
led-running = &power_green;
- led-internet = &internet_green;
+ led-dsl = &internet_green;
};
memory@0 {
led-failsafe = &power_blue;
led-running = &power_red;
- led-internet = &internet_red;
+ led-dsl = &internet_red;
led-usb = &umts;
led-wifi = &wifi;
};
led-failsafe = &power_blue;
led-running = &power_red;
- led-internet = &internet_red;
+ led-dsl = &internet_red;
led-usb = &umts;
led-wifi = &wifi;
};
led-failsafe = &power_red;
led-running = &power_green;
- led-internet = &dsl;
+ led-dsl = &dsl;
};
memory@0 {
led-failsafe = &power_red;
led-running = &power_blue;
- led-internet = &broadband_blue;
+ led-dsl = &broadband_blue;
led-wifi = &wireless_blue;
};
led-failsafe = &power_red;
led-running = &power_blue;
- led-internet = &broadband_blue;
+ led-dsl = &broadband_blue;
led-wifi = &wireless_blue;
};
led-failsafe = &power_red;
led-running = &power_blue;
- led-internet = &broadband_blue;
+ led-dsl = &broadband_blue;
led-wifi = &wireless_blue;
};
led-failsafe = &power_red;
led-running = &power_green;
- led-internet = &info_green;
+ led-dsl = &info_green;
led-wifi = &wifi;
};
led-failsafe = &power_red;
led-running = &power_green;
- led-internet = &dsl;
+ led-dsl = &dsl;
};
memory@0 {