aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/openrc.post-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/openrc.post-upgrade')
-rw-r--r--main/openrc/openrc.post-upgrade9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/openrc/openrc.post-upgrade b/main/openrc/openrc.post-upgrade
new file mode 100644
index 0000000000..b09f2f240c
--- /dev/null
+++ b/main/openrc/openrc.post-upgrade
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# in 0.5.x the state dir moved from /lib/rc/init.d to /libexec/rc/init.d
+
+[ -d /lib/rc/init.d ] || exit 0
+
+mv /lib/rc/init.d/* /libexec/rc/init.d/
+rmdir /lib/rc/init.d
+exit 0