No Description

xl2tpd.init 277B

123456789101112131415161718
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. START=60
  4. BIN=xl2tpd
  5. DEFAULT=/etc/default/$BIN
  6. RUN_D=/var/run
  7. PID_F=$RUN_D/$BIN.pid
  8. start() {
  9. mkdir -p $RUN_D/$BIN
  10. [ -f $DEFAULT ] && . $DEFAULT
  11. $BIN $OPTIONS
  12. }
  13. stop() {
  14. [ -f $PID_F ] && kill $(cat $PID_F)
  15. }