kumquat-buildroot/package/xl2tp/xl2tpd
Martin Banky 767dce8cee l2tp: convert to gentargets and change to xl2tp
l2tp is no longer being developed, and xl2tpd is forked from l2tpd and is
maintained by Xelerance Corporation.

[Peter: remove invalid pppd dependency]
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-14 01:35:41 +01:00

28 lines
526 B
Bash
Executable File

#!/bin/sh
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/xl2tpd
PIDFILE=/var/run/xl2tpd.pid
test -f $DAEMON || exit 0
case "$1" in
start)
start-stop-daemon -S -p $PIDFILE -x $DAEMON -- -D &
;;
stop)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
;;
restart|force-reload)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
sleep 1
start-stop-daemon -S -p $PIDFILE -x $DAEMON
;;
*)
echo "Usage: /etc/init.d/xl2tdp {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0