ar71xx: Added support for D-link DHP-1565 rev. A1
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 04_led_migration
index 0ecf4be1318adfea49a5ed4095c51f7fafcb89c3..1cef8b993772a36d2df7dd4d69a6c94a7f82c8ca 100755 (executable)
@@ -26,7 +26,7 @@ do_led_update_sysfs()
 
                new_sysfs=$(echo ${sysfs} | sed "s/${old}/${new}/")
 
-               [ "${new_sysfs}" == "${sysfs}" ] && continue
+               [ "$new_sysfs" = "$sysfs" ] && continue
 
                uci set system.${cfg}.sysfs="${new_sysfs}"
                LED_OPTIONS_CHANGED=1
@@ -46,6 +46,12 @@ migrate_leds()
 board=$(ar71xx_board_name)
 
 case "$board" in
+dhp-1565-a1|\
+dir-825-c1|\
+dir-835-a1)
+       migrate_leds ":orange:=:amber:" ":wifi_bgn=:wlan2g"
+       ;;
+
 wndap360)
        migrate_leds "wndap360:=netgear:"
        ;;
@@ -54,6 +60,11 @@ wndr3700)
        migrate_leds "wndr3700:=netgear:"
        ;;
 
+wndr3700v4 | \
+wndr4300)
+       migrate_leds ":orange:=:amber:"
+       ;;
+
 wnr2000)
        migrate_leds "wnr2000:=netgear:"
        ;;
@@ -70,6 +81,6 @@ wnr612-v2)
        ;;
 esac
 
-[ "$LED_OPTIONS_CHANGED" == "1" ] && uci commit system
+[ "$LED_OPTIONS_CHANGED" = "1" ] && uci commit system
 
 exit 0