#!/bin/sh
#
# mssclampfw	This shell script takes care of loading and unloading
#              	the mssclampfw module.
#
# chkconfig: 2345 20 80
# description: mssclampfw

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting mssclampfw: "
	/sbin/modprobe mssclampfw
	ret=$?
        touch /var/lock/subsys/mssclampfw
	if [ "$BOOTUP" = "color" ]; then
		[ "${ret}" -eq 0 ] && echo_success || echo_failure
	fi
	echo
	exit ${ret}
        ;;
  stop)
        echo -n "Shutting down mssclampfw: "
	/sbin/rmmod mssclampfw >/dev/null 2>&1
	ret=$?
        rm -f /var/lock/subsys/mssclampfw
	if [ "$BOOTUP" = "color" ]; then
		[ "${ret}" -eq 0 ] && echo_success || echo_failure
	fi
	echo
	exit ${ret}
        ;;
  status)
	exit $?
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  *)
        echo "Usage: mssclampfw {start|stop}"
        exit 1
esac

exit 0
