From f710e4966df85a9b5ca2fb39e6a07ba3d39748c1 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 20 Jun 2019 14:23:54 +0200 Subject: [PATCH] update_firewall-script_ipt-gateway.sh: don't restart firewall on read-only systems. --- update_firewall-script_ipt-gateway.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update_firewall-script_ipt-gateway.sh b/update_firewall-script_ipt-gateway.sh index 7088672..24c998a 100755 --- a/update_firewall-script_ipt-gateway.sh +++ b/update_firewall-script_ipt-gateway.sh @@ -329,6 +329,14 @@ done blank_line +if [[ -d "/ro" ]] && [[ -d "/rw" ]] ; then + restart_ipv4_firewall=false + restart_ipv6_firewall=false + + info "Restarting firewall is ommited - Read only system." +fi + + echononl "Restart IPv4 Firewall.." if $restart_ipv4_firewall ; then /usr/local/sbin/$IPV4_FIREWALL_SCRIPT > /dev/null 2> "$log_file"