From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- extra/openrc/openrc.post-upgrade | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 extra/openrc/openrc.post-upgrade (limited to 'extra/openrc/openrc.post-upgrade') diff --git a/extra/openrc/openrc.post-upgrade b/extra/openrc/openrc.post-upgrade deleted file mode 100644 index 8884202..0000000 --- a/extra/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 -- cgit v1.2.1