summaryrefslogtreecommitdiff
path: root/openwrt/package/rp-l2tp/files/rp-l2tpd.init
blob: 4e03836bbe571d3bc957124d260a949f812a89f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 $?