summaryrefslogtreecommitdiff
path: root/repo/system/openrc/openrc.post-upgrade
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/system/openrc/openrc.post-upgrade
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/system/openrc/openrc.post-upgrade')
-rw-r--r--repo/system/openrc/openrc.post-upgrade35
1 files changed, 0 insertions, 35 deletions
diff --git a/repo/system/openrc/openrc.post-upgrade b/repo/system/openrc/openrc.post-upgrade
deleted file mode 100644
index 8884202..0000000
--- a/repo/system/openrc/openrc.post-upgrade
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# in 0.8.0-r1 the state dir moved from /libexec/rc/init.d to /lib/rc/init.d
-# and with 0.10 it moved to /run/openrc
-
-mkdir -p /run/openrc
-for dir in /libexec /lib; do
- [ -d $dir/rc/init.d ] || continue
-
- for i in $dir/rc/init.d/* ; do
- [ -e "$i" ] || continue
- if [ -e /run/openrc/${i##*/} ]; then
- rm -r $i
- else
- mv $i /run/openrc/
- fi
- done
-
- rmdir $dir/rc/init.d $dir/rc /libexec 2>/dev/null
-done
-
-# create rc.local compat
-if [ -f /etc/rc.local ]; then
- cat >/etc/local.d/rc.local-compat.start<<__EOF__
-#!/bin/sh
-
-# this is only here for compatibility reasons
-if [ -f /etc/rc.local ]; then
- . /etc/rc.local
-fi
-__EOF__
- chmod +x /etc/local.d/rc.local-compat.start
-fi
-
-exit 0