Skip to content

Commit

Permalink
allow the user to disable the firewall now and on boot (fixes puppyli…
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Feb 19, 2022
1 parent 47bc222 commit 80f2b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woof-code/rootfs-packages/firewall_ng/usr/sbin/firewall_ng
Original file line number Diff line number Diff line change
Expand Up @@ -1344,14 +1344,14 @@ if [ -f "$TMPFW" ];then
[ $state = 1 -a "$1" != "enable" ] && /etc/init.d/rc.firewall stop && sleep 1
echo "copying firewall"
cp -af "$TMPFW" /etc/init.d/rc.firewall
chmod 755 /etc/init.d/rc.firewall
[ "$MAIN" = "false" ] && chmod 644 /etc/init.d/rc.firewall || chmod 755 /etc/init.d/rc.firewall
rm -f "$TMPFW"
else
echo "Something went wrong"
exit
fi

[ "$1" = "enable" ] && exit
[ "$1" = "enable" -o "$MAIN" = "false" ] && exit

# run it!
gtkdialog-splash -bg yellow -timeout 2 -text "Starting firewall" &
Expand Down

0 comments on commit 80f2b44

Please sign in to comment.