pptpd.init 391 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #FWINIT 60
  3. . /etc/rc.conf
  4. case $1 in
  5. autostop) ;;
  6. autostart)
  7. test x"${pptpd:-NO}" = x"NO" && exit 0
  8. exec sh $0 start
  9. ;;
  10. start)
  11. for m in arc4 sha1 slhc crc-ccitt ppp_generic ppp_async ppp_mppe_mppc; do
  12. insmod $m >/dev/null 2>&1
  13. done
  14. pptpd
  15. ;;
  16. stop)
  17. killall pptpd
  18. ;;
  19. restart)
  20. sh $0 stop
  21. sh $0 start
  22. ;;
  23. *)
  24. echo "usage: $0 {start | stop | restart}"
  25. exit 1
  26. esac
  27. exit $?