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.

Example:


uci -q delete network.guest; uci set network.guest="interface"; uci set network.guest.proto="static"; uci set network.guest.ipaddr="192.168.3.1"; uci set network.guest.netmask="255.255.255.0"; 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:
https://openwrt.org/docs/guide-quick-start/sshadministration

1 Like