summaryrefslogtreecommitdiff
path: root/package/rdate/ipkg/rdate.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/rdate/ipkg/rdate.postinst')
-rw-r--r--package/rdate/ipkg/rdate.postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/rdate/ipkg/rdate.postinst b/package/rdate/ipkg/rdate.postinst
new file mode 100644
index 000000000..e0013bdcc
--- /dev/null
+++ b/package/rdate/ipkg/rdate.postinst
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf 'e.g. "-nv pool.ntp.org"' rdate_flags
+add_service ntp 123/udp