Trying to make uci network configuration one time #22

Merged
PeterSurda merged 2 commits from lee.miller/openwrt:defaults into main 2023-02-16 11:45:05 +01:00
Showing only changes of commit 44c6ed93c4 - Show all commits

View File

@ -1,4 +1,7 @@
[ "$(uci -q get firewall.@rule[-1].name)" = "Allow-SSH" ] && exit 0 [ "$(uci -q get luci.diag.dns)" = "bitmessage.org" ] && exit 0

This may not work if I add more rules (manually) later.

This may not work if I add more rules (manually) later.
# make a significant change
/sbin/uci set luci.diag.dns='bitmessage.org'
# switch LAN to eth1 # switch LAN to eth1
/sbin/uci set network.@device[0].ports='eth1' /sbin/uci set network.@device[0].ports='eth1'