summaryrefslogtreecommitdiff
path: root/package/openntpd/ipkg/openntpd.postinst
blob: 53bc8c387ef41aa1b5358cb22213ac25307d0040 (plain)
1
2
3
4
5
6
7
#!/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 'e.g. "-s"' ntpd_flags