X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=blobdiff_plain;f=openwrt%2Fpackage%2Frp-l2tp%2Ffiles%2Frp-l2tpd.init;fp=openwrt%2Fpackage%2Frp-l2tp%2Ffiles%2Frp-l2tpd.init;h=4e03836bbe571d3bc957124d260a949f812a89f3;hp=0000000000000000000000000000000000000000;hb=5530a20e60dd64b013382eaea57bc9f9e8a6ee1e;hpb=33a39bc348ef40856153212a5f2ebd37dcef648c diff --git a/openwrt/package/rp-l2tp/files/rp-l2tpd.init b/openwrt/package/rp-l2tp/files/rp-l2tpd.init new file mode 100755 index 0000000000..4e03836bbe --- /dev/null +++ b/openwrt/package/rp-l2tp/files/rp-l2tpd.init @@ -0,0 +1,17 @@ +#!/bin/sh + +DEFAULT=/etc/default/rp-l2tpd +RUN_D=/var/run +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + [ -d $RUN_D ] || mkdir -p $RUN_D + l2tpd $OPTIONS + ;; + *) + echo "usage: $0 (start)" + exit 1 +esac + +exit $?