From 61e7e50da95b5f761c4e81694115cb1b46303bea Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Thu, 22 Feb 2018 08:25:39 +0000 Subject: The firewall_type is ignored if not set in rc.conf or rc.conf.local, after r190575 there is an option to call rc.firewall with the firewall_type passed in as an argument. Submitted by: David P. Discher MFC after: 3 weeks. Sponsored by: iXsystems Inc. Differential Revision: https://reviews.freebsd.org/D14286 --- etc/rc.d/ipfw | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/rc.d') diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw index b9417f6679db..1f1e5d20bf43 100755 --- a/etc/rc.d/ipfw +++ b/etc/rc.d/ipfw @@ -40,7 +40,11 @@ ipfw_start() { local _firewall_type - _firewall_type=$1 + if [ -n "${1}" ]; then + _firewall_type=$1 + else + _firewall_type=${firewall_type} + fi # set the firewall rules script if none was specified [ -z "${firewall_script}" ] && firewall_script=/etc/rc.firewall -- cgit v1.2.3