From 68196ebf447649d7675ce7afc2e1d5b51bb27967 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 15 Feb 2023 03:36:03 +0200 Subject: [PATCH 1/2] Trying to make uci network configuration one time --- defaults/49-network | 2 ++ 1 file changed, 2 insertions(+) diff --git a/defaults/49-network b/defaults/49-network index 3180212..ffb3449 100644 --- a/defaults/49-network +++ b/defaults/49-network @@ -1,3 +1,5 @@ +[ "$(uci -q get firewall.@rule[-1].name)" = "Allow-SSH" ] && exit 0 + # switch LAN to eth1 /sbin/uci set network.@device[0].ports='eth1' -- 2.45.1 From 44c6ed93c41ab0178013e2b9d4d779c824204378 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 16 Feb 2023 02:48:26 +0200 Subject: [PATCH 2/2] Set a custom uci option to determine applied defaults --- defaults/49-network | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/49-network b/defaults/49-network index ffb3449..357ae22 100644 --- a/defaults/49-network +++ b/defaults/49-network @@ -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 + +# make a significant change +/sbin/uci set luci.diag.dns='bitmessage.org' # switch LAN to eth1 /sbin/uci set network.@device[0].ports='eth1' -- 2.45.1