Massive propset of svn:keywords for packages newly addded, next time, we should not...
[openwrt/svn-archive/archive.git] / net / xl2tpd / files / xl2tpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=60
5 BIN=xl2tpd
6 DEFAULT=/etc/default/$BIN
7 RUN_D=/var/run
8 PID_F=$RUN_D/$BIN.pid
9
10 start() {
11 mkdir -p $RUN_D/$BIN
12 [ -f $DEFAULT ] && . $DEFAULT
13 $BIN $OPTIONS
14 }
15
16 stop() {
17 [ -f $PID_F ] && kill $(cat $PID_F)
18 }
19