#!/bin/sh

start() {
    /usr/local/bin/l2tp/StartL2TP &> /dev/null &
}	
stop() {
    busybox killall -9 StartL2TP
    busybox killall -9 xl2tpd
    busybox killall -9 l2tp_dialer
    busybox killall -9 l2tp-ip-up
    busybox killall -9 l2tp-ip-down
}
restart() {
	stop
	start
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart|reload)
  	restart
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?
