How to add new Wifi iface with new through UCI?

Since one of the updates it seems that you need to add a new iface with a name, which I think is nice. The only issue is, I have a script after I install OpenWRT that immediately adds all my personal stuff to prevent issues with changes and full config backups.

Now I cannot for the life of me find how to add a "uci add wireless wifi-iface" with a name included, does anyone know what the correct command is to do that, or if it isn't possible yet?

uci set wireless.a_suitable_name=wifi-iface
uci set wireless.a_suitable_name.channel=1
uci set ...
2 Likes