scripts: fix wrong usage of '==' operator
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 04_led_migration
index f3f1adfaa1a5269b2a9b2626dbae4cf9c3e813f4..0df94a01c047730532f38a5018ca27becad8821d 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
@@ -59,6 +59,11 @@ wndr3700)
        migrate_leds "wndr3700:=netgear:"
        ;;
 
+wndr3700v4 | \
+wndr4300)
+       migrate_leds ":orange:=:amber:"
+       ;;
+
 wnr2000)
        migrate_leds "wnr2000:=netgear:"
        ;;
@@ -75,6 +80,6 @@ wnr612-v2)
        ;;
 esac
 
-[ "$LED_OPTIONS_CHANGED" == "1" ] && uci commit system
+[ "$LED_OPTIONS_CHANGED" = "1" ] && uci commit system
 
 exit 0