vcpe/l2tp/xl2tpd/packaging/openwrt/xl2tpd.init

18 lines
218 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=60
BIN=xl2tpd
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
$BIN $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}