From 838c9efb36b3b058c5a5b9d0e8c6d4d4789a44b9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 18 Mar 2013 18:29:36 -0500 Subject: Remove gentoo's net.* scripts It has been determined that it will be best for gentoo's net.* scripts to be in a separate package to allow independent development. This package will be called netifrc and maintained by Gentoo. --- net/firewalld.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 net/firewalld.sh (limited to 'net/firewalld.sh') diff --git a/net/firewalld.sh b/net/firewalld.sh deleted file mode 100644 index ae83c575..00000000 --- a/net/firewalld.sh +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2012 Doug Goldstein -# Released under the 2-clause BSD license. - -firewalld_depend() -{ - after interface - before dhcp - program firewall-cmd - [ "$IFACE" != "lo" ] && need firewalld -} - -_config_vars="$_config_vars firewalld_zone" - -firewalld_post_start() -{ - local firewalld_zone= - eval firewalld_zone=\$firewalld_zone_${IFVAR} - - _exists || return 0 - - if [ "${IFACE}" != "lo" ]; then - firewall-cmd --zone="${firewalld_zone}" \ - --change-interface="${IFACE}" > /dev/null 2>&1 - fi - - return 0 -} - -firewalld_pre_stop() -{ - _exists || return 0 - - if [ "${IFACE}" != "lo" ]; then - firewall-cmd --remove-interface="${IFACE}" > /dev/null 2>&1 - fi - - return 0 -} -- cgit v1.2.3