summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-24 16:39:08 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-24 16:40:49 +0000
commite5381301befc14c455e29297c531c4b8864dc9c9 (patch)
tree6d5b0e3b34124fa38c3b98304181d8757f74f577 /sys-apps
parentaaba7c14a0a9b592c618c57f0263b83af5685c72 (diff)
sys-apps/openrc : make transition to openrc-init seamless
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/openrc/openrc-0.42.1-r2.ebuild (renamed from sys-apps/openrc/openrc-0.42.1-r1.ebuild)8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys-apps/openrc/openrc-0.42.1-r1.ebuild b/sys-apps/openrc/openrc-0.42.1-r2.ebuild
index cf078f96..c44be165 100644
--- a/sys-apps/openrc/openrc-0.42.1-r1.ebuild
+++ b/sys-apps/openrc/openrc-0.42.1-r2.ebuild
@@ -241,4 +241,12 @@ pkg_postinst() {
"${ROOT}"/sbin/rc-update add haveged default
fi
fi
+
+ if use sysv-utils; then
+ export local xtty
+ for xtty in `seq 1 6`; do
+ ln -s "${ROOT}"/etc/init.d/agetty "${ROOT}"/etc/init.d/agetty.tty"${xtty}"
+ "${ROOT}"/sbin/rc-update add agetty.tty"${xtty}" default
+ done
+ fi
}