Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv10373/build/scripts/scripts
Added Files:
shorewall
Log Message:
Added shorewall 1.4.8
--- NEW FILE: shorewall ---
#!/bin/bash
#
# http://www.devil-linux.org
# SHOREWALL added by Martin Glazer (sou...@gl...)
### BEGIN INIT INFO
# Provides: shorewall
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: starts and stops the Shorewall firewall
### END INIT INFO
# settings
source /etc/sysconfig/config
# parameters
NAME="Shorewall Firewll"
CONFIGNAME=SHOREWALL
DAEMON=/sbin/shorewall
PARAMETER=
# source function library
source /etc/init.d/functions
eval START=\$START_$CONFIGNAME
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START=yes
test "$START" = "yes" || exit 0
usage() {
echo "Usage: $0 start|stop|restart|status"
exit 1
}
command="$1"
case "$command" in
stop|start|restart|status)
exec /sbin/shorewall $@
;;
*)
usage
;;
esac
|