diff options
author | Martin Banky <martin.banky@gmail.com> | 2010-12-12 22:54:05 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-12-14 01:35:41 +0100 |
commit | 767dce8cee8b295ce91bc0ac1d71287eef4be08a (patch) | |
tree | b416a4339657c5e6091122d34bc506af4870cbc2 /package/xl2tp/xl2tpd | |
parent | fc13fc7b57844429e09bd49d84f86b54971fc487 (diff) | |
download | buildroot-novena-767dce8cee8b295ce91bc0ac1d71287eef4be08a.tar.gz buildroot-novena-767dce8cee8b295ce91bc0ac1d71287eef4be08a.zip |
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>
Diffstat (limited to 'package/xl2tp/xl2tpd')
-rwxr-xr-x | package/xl2tp/xl2tpd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/xl2tp/xl2tpd b/package/xl2tp/xl2tpd new file mode 100755 index 000000000..36c12a23f --- /dev/null +++ b/package/xl2tp/xl2tpd @@ -0,0 +1,27 @@ +#!/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 |