1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

Instead of directly sourcing the firewall script, run it in a separate shell.

If the firewall script is sourced directly from the script, then any
exit statements in it will also terminate the rc.d script prematurely.

PR: conf/78762
MFC-After: 2 weeks
This commit is contained in:
Mike Makonnen 2007-04-02 15:38:53 +00:00
parent fcd7195cf9
commit 1b0a8a3e52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168272
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ ip6fw_start()
# Load rules
#
if [ -r "${ipv6_firewall_script}" ]; then
. "${ipv6_firewall_script}"
/bin/sh "${ipv6_firewall_script}"
echo 'IPv6 Firewall rules loaded.'
elif [ "`ipfw show 65535`" = "65535 deny ip from any to any" ]; then
warn 'IPv6 firewall rules have not been loaded. Default' \

View File

@ -26,7 +26,7 @@ ipfw_start()
if [ -f /etc/rc.d/natd ] ; then
/etc/rc.d/natd start
fi
. "${firewall_script}"
/bin/sh "${firewall_script}"
echo 'Firewall rules loaded.'
elif [ "`ipfw list 65535`" = "65535 deny ip from any to any" ]; then
echo 'Warning: kernel has firewall functionality, but' \