You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
277 B

  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. }