#!/bin/sh

# Copyright (C) 2000 NEC Corporation
# All Rights Reserved.

# RCS: $Id: wbmcinit,v 1.1.1.1 2009/06/24 10:16:54 wbmc Exp $


#
# Startup script for the Management Console
#
# chkconfig: 345 08 99
# description: Management Console Startup Script.

case "$1" in
  start)
	/opt/nec/wbmc/bin/wbmcdaily
	/opt/nec/wbmc/bin/kdi
	## add 2003/03/31 iptables -t filter begin ##
	/sbin/iptables-restore -c -n < /etc/opt/nec/wbmc/iptables.conf > /dev/null 2>&1
	## add 2003/03/31 iptables -t filter end ##
	;;
  stop)
	;;
  status)
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0

