2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
2006-08-07 12:47:31 +00:00
|
|
|
|
2006-10-15 21:03:30 +00:00
|
|
|
START=60
|
2006-08-07 12:47:31 +00:00
|
|
|
DEFAULT=/etc/default/rp-l2tpd
|
|
|
|
RUN_D=/var/run
|
|
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
|
|
|
[ -d $RUN_D ] || mkdir -p $RUN_D
|
|
|
|
l2tpd $OPTIONS
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
killall l2tpd
|
|
|
|
}
|
2006-08-07 12:47:31 +00:00
|
|
|
|