From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/system/openrc/openrc.post-install | 38 ---------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 repo/system/openrc/openrc.post-install (limited to 'repo/system/openrc/openrc.post-install') diff --git a/repo/system/openrc/openrc.post-install b/repo/system/openrc/openrc.post-install deleted file mode 100644 index 1c27350..0000000 --- a/repo/system/openrc/openrc.post-install +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -rc_update() { - local svc="$1" - local level="$2" - mkdir -p /etc/runlevels/$level - ln -sf /etc/init.d/$svc /etc/runlevels/$level -} - -if [ ! -d etc/rcS.d ] && [ ! -d etc/rcL.d ]; then - exit 0 -fi - -for i in etc/rc[SL].d/*; do - [ -L "$i" ] || continue - oldsvc=${i##*/S[0-9][0-9]} - # some services are renamed - case "$oldsvc" in - modutils) svc=modules;; - procps) svc=sysctl;; - bootmisc.sh) svc=bootmisc;; - keymap) svc=keymaps;; - rc.local) svc=local;; - *) svc=$oldsvc;; - esac - - # add the service to correct "runlevel" - case "$svc" in - syslog|klogd) - rc_update $svc sysinit;; - hwclock|modules|sysctl|hostname|keymaps|bootmisc) - rc_update $svc boot;; - *) rc_update $svc default;; - esac - - rm $i -done - -- cgit v1.2.1