1
0

olsrd.init 267 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #PKG olsrd
  3. #INIT 60
  4. . /etc/rc.conf
  5. case $1 in
  6. autostop) ;;
  7. autostart)
  8. test x"${olsrd:-NO}" = x"NO" && exit 0
  9. exec sh $0 start
  10. ;;
  11. start)
  12. olsrd
  13. ;;
  14. restart)
  15. sh $0 stop
  16. sh $0 start
  17. ;;
  18. *)
  19. echo "usage: $0 {start | stop | restart}"
  20. exit 1
  21. esac
  22. exit $?