3 # Startup script for gpe firewall engine.
4 # Based on debian skeleton.
9 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
10 GPE_SHIELD=/usr/bin/gpe-shield
11 IPTABLES=/usr/sbin/iptables
13 DESC="GPE desktop firewall"
15 SCRIPTNAME=/etc/init.d/$NAME
17 # Gracefully exit if the package has been removed.
18 test -x $GPE_SHIELD || exit 0
20 # Read config file if it is present.
21 #if [ -r /etc/default/$NAME ]
23 # . /etc/default/$NAME
29 test -f /etc/access.conf || exit 0
31 echo -n "Starting $DESC: $NAME"
32 if [ -f /etc/gpe/gpe-shield-load ]
34 $GPE_SHIELD --activate > /dev/null && echo -n " done"
36 echo -n " deactivated"
41 echo -n "Stopping $DESC: $NAME"
42 ($IPTABLES --flush && $IPTABLES -P INPUT ACCEPT) > /dev/null && echo "."
45 echo "Usage: $SCRIPTNAME {start|stop}" >&2