diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-12-16 12:00:19 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-12-16 12:00:19 +0000 |
commit | e7b91ae934b0bec9d9dbd032098b19f83e718671 (patch) | |
tree | c7e4f55c17330c76189fcfe0ad5aaacae3660ad4 /openwrt/package/l2tpd/files/l2tpd.init | |
parent | 1292e7f07dcdcdd18b96f21c044f3b04380d327a (diff) | |
download | mtk-20170518-e7b91ae934b0bec9d9dbd032098b19f83e718671.zip mtk-20170518-e7b91ae934b0bec9d9dbd032098b19f83e718671.tar.gz mtk-20170518-e7b91ae934b0bec9d9dbd032098b19f83e718671.tar.bz2 |
port l2tpd fixes from changeset:2696 to trunk.
SVN-Revision: 2697
Diffstat (limited to 'openwrt/package/l2tpd/files/l2tpd.init')
-rw-r--r-- | openwrt/package/l2tpd/files/l2tpd.init | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openwrt/package/l2tpd/files/l2tpd.init b/openwrt/package/l2tpd/files/l2tpd.init new file mode 100644 index 0000000..f531757 --- /dev/null +++ b/openwrt/package/l2tpd/files/l2tpd.init @@ -0,0 +1,21 @@ +#!/bin/sh + +BIN=l2tpd +DEFAULT=/etc/default/$BIN +RUN_D=/var/run +PID_F=$RUN_D/$BIN.pid +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + $BIN $OPTIONS + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? |