summaryrefslogtreecommitdiff
path: root/package/openntpd/ipkg/openntpd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/openntpd/ipkg/openntpd.postinst')
-rw-r--r--package/openntpd/ipkg/openntpd.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/openntpd/ipkg/openntpd.postinst b/package/openntpd/ipkg/openntpd.postinst
new file mode 100644
index 000000000..53bc8c387
--- /dev/null
+++ b/package/openntpd/ipkg/openntpd.postinst
@@ -0,0 +1,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