aboutsummaryrefslogtreecommitdiffstats
path: root/main/openntpd/openntpd.post-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.post-upgrade
parentd249b9785e9bce053b233ff7dbbe6e2f25ba2ff6 (diff)
downloadaports-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.post-upgrade')
-rw-r--r--main/openntpd/openntpd.post-upgrade7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/openntpd/openntpd.post-upgrade b/main/openntpd/openntpd.post-upgrade
new file mode 100644
index 0000000000..88f0fa97e2
--- /dev/null
+++ b/main/openntpd/openntpd.post-upgrade
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in /run/openrc/started/ntpd /etc/runlevels/*/ntpd; do
+ if [ -L "$i" ]; then
+ mv "$i" "${i%/*}"/openntpd
+ fi
+done