From a4e36eb0672df3dfa01a77dba4ca4805c445171a Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 18 Jun 2022 15:19:18 +0300 Subject: [PATCH] installer.sh : fix restarting fw4 firewall --- common/installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/installer.sh b/common/installer.sh index 6febc4b..269fa61 100644 --- a/common/installer.sh +++ b/common/installer.sh @@ -402,8 +402,10 @@ restart_openwrt_firewall() { echo \* restarting firewall - fw3 -q restart || { - echo could not restart firewall + local FW=fw4 + [ -n "$OPENWRT_FW3" ] && FW=fw3 + $FW -q restart || { + echo could not restart firewall $FW exitp 30 } }