From bc68e4194ab5a36c2f0e03353adc23eef8d86d2f Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 10 Dec 2024 16:37:39 +0100 Subject: [PATCH] Commit firewall changes in /etc/firewall.omr-server only if there is real changes --- openmptcprouter/files/etc/firewall.omr-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmptcprouter/files/etc/firewall.omr-server b/openmptcprouter/files/etc/firewall.omr-server index cbd8d719d0..7d949fc869 100644 --- a/openmptcprouter/files/etc/firewall.omr-server +++ b/openmptcprouter/files/etc/firewall.omr-server @@ -11,6 +11,6 @@ _enable_firewall_check() { logger -t "firewall.omr-server" "Firewall reload, set server part firewall reloading" config_load openmptcprouter config_foreach _enable_firewall_check server -uci -q commit firewall +[ -n "$(uci -q changes firewall)" ] && uci -q commit firewall #/etc/init.d/openmptcprouter-vps set_vps_firewall & /bin/blocklanfw 2>&1 >/dev/null