aboutsummaryrefslogtreecommitdiffstats
path: root/main/openntpd/openntpd.pre-upgrade
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-03-17 12:37:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-17 12:45:25 +0000
commit9bd55a1a2a59c921b42964c01c5b770fad883249 (patch)
tree3435f17eff1fea5e41262668fc009cea3032e210 /main/openntpd/openntpd.pre-upgrade
parentd249b9785e9bce053b233ff7dbbe6e2f25ba2ff6 (diff)
downloadaports-9bd55a1a2a59c921b42964c01c5b770fad883249.tar.gz
aports-9bd55a1a2a59c921b42964c01c5b770fad883249.tar.bz2
aports-9bd55a1a2a59c921b42964c01c5b770fad883249.tar.xz
main/openntpd: mv {init.d,conf.d}/ntpd -> openntpd
In preparation for ntpd init and conf script in main/busybox-initscripts. Handles migration of user edited /etc/conf.d/ntpd and runlevel enablement.
Diffstat (limited to 'main/openntpd/openntpd.pre-upgrade')
-rw-r--r--main/openntpd/openntpd.pre-upgrade5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/openntpd/openntpd.pre-upgrade b/main/openntpd/openntpd.pre-upgrade
new file mode 100644
index 0000000000..3b052db3ff
--- /dev/null
+++ b/main/openntpd/openntpd.pre-upgrade
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if grep -q '^NTPD_HOME=' /etc/conf.d/ntpd 2>/dev/null; then
+ mv /etc/conf.d/ntpd /etc/conf.d/openntpd
+fi