summaryrefslogtreecommitdiff
path: root/package/openntpd/files/openntpd.postinst
blob: 1688c112cd55c0607987ab2f14c568ff5252ec75 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
gid=$(get_next_gid)
add_group ntp $gid
add_user ntp $(get_next_uid) $gid /tmp/.ntp
add_service ntp 123/udp
add_rcconf openntpd_flags "-s"
add_rcconf openntpd NO