openntpd.postinst 197 B

12345678
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. gid=$(get_next_gid)
  4. add_group ntp $gid
  5. add_user ntp $(get_next_uid) $gid /tmp/.ntp
  6. add_service ntp 123/udp
  7. add_rcconf ntpd_flags "-s"
  8. add_rcconf ntpd NO