port lots of init scripts over to rc.common (more to come)
[packages.git] / net / rp-l2tp / files / rp-l2tpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 DEFAULT=/etc/default/rp-l2tpd
5 RUN_D=/var/run
6 [ -f $DEFAULT ] && . $DEFAULT
7
8 start() {
9         [ -d $RUN_D ] || mkdir -p $RUN_D
10         l2tpd $OPTIONS
11 }
12
13 stop() {
14         killall l2tpd
15 }
16