om-watchdog.init 748 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh /etc/rc.common
  2. #
  3. # Copyright (C) 2011 OpenWrt.org
  4. #
  5. START=11
  6. SERVICE_DAEMONIZE=1
  7. boot() {
  8. if [ -r /lib/ar71xx.sh ]; then
  9. . /lib/ar71xx.sh
  10. local board=$(ar71xx_board_name)
  11. case "$board" in
  12. "om2p"|"om2p-hs"|"om2p-hsv2"|"om2p-hsv3"|"om5p-acv2")
  13. service_start /sbin/om-watchdog 12
  14. ;;
  15. "om2pv2"|"om2p-lc")
  16. service_start /sbin/om-watchdog 26
  17. ;;
  18. "om5p"|"om5p-an")
  19. service_start /sbin/om-watchdog 11
  20. ;;
  21. "om5p-ac")
  22. service_start /sbin/om-watchdog 17
  23. ;;
  24. "mr600v2")
  25. service_start /sbin/om-watchdog 15
  26. ;;
  27. "mr900"|"mr900v2"|"mr1750"|"mr1750v2")
  28. service_start /sbin/om-watchdog 16
  29. ;;
  30. esac
  31. else
  32. #we assume it is om1p in this case
  33. service_start /sbin/om-watchdog 3
  34. fi
  35. }