summaryrefslogtreecommitdiff
blob: 5caa6a1a64db5ae701dc5b8301f6d0d6829feb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	need logger net
}

start() {
	ebegin "Loading gShield network firewall"
	/usr/share/gshield/gShield.rc start > /dev/null
	# check that it loaded
	iptables -L DMZ > /dev/null 2>&1
	eend $?
}

stop() {
	ebegin "Unloading gShield network firewall"
	/usr/share/gshield/gShield.rc stop > /dev/null
	# check that it unloaded
	if iptables -L DMZ > /dev/null 2>&1 ; then
		eend 1
	else
		eend 0;
	fi
}