Multiple UCI Commands

If I need to type in many UCI commands like those presented in the link below do I have to enter them one by one on the command line or is there a way to run them all together as a script? Thanks.

Just put a ; in between the commands and you can put them all on one line.


uci -q delete network.guest; uci set network.guest="interface"; uci set network.guest.proto="static"; uci set network.guest.ipaddr=""; uci set network.guest.netmask=""; uci commit network; /etc/init.d/network restart

1 Like

That's perfect! Thanks

You can copy and paste entire blocks of code as is.
The terminal emulator should take care of newlines.
If this way doesn't work for you, try another terminal emulator:

1 Like