ntpdate.init 246 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #PKG busybox
  3. #INIT 55
  4. . /etc/rc.conf
  5. case $1 in
  6. autostop) ;;
  7. autostart)
  8. test x"${ntpdate:-NO}" = x"NO" && exit 0
  9. exec sh $0 start
  10. ;;
  11. start)
  12. /usr/sbin/ntpd -n -q $ntpd_flags
  13. ;;
  14. *)
  15. echo "Usage: $0 {start}"
  16. exit 1
  17. ;;
  18. esac
  19. exit $?