scripts: fix wrong usage of '==' operator
[openwrt/staging/florian.git] / package / base-files / files / lib / functions / uci-defaults-new.sh
index ba954dee21fc563832795cedf5dc7fe76c2922aa..0751744dcbc248c8c8fa8cc5dbdcdbcef027a888 100755 (executable)
@@ -34,7 +34,7 @@ _ucidef_set_interface() {
 
        json_select_object $name
        json_add_string ifname "${iface%%.*}"
-       [ "$iface" == "${iface%%.*}" ] || json_add_boolean create_vlan 1
+       [ "$iface" = "${iface%%.*}" ] || json_add_boolean create_vlan 1
        json_select ..
 }