summaryrefslogtreecommitdiff
path: root/sys-apps/openrc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-09 05:34:13 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-09 05:34:13 +0000
commit07504ac72f4717bd46c90aca42b7360d947d312e (patch)
treeddd35c32c3ce1ae37331707c882d4c3782c75a5d /sys-apps/openrc
parentc8dcffeee823616eae8c5994b1160f9a124cd6be (diff)
sys-apps/openrc : revision bump
Diffstat (limited to 'sys-apps/openrc')
-rw-r--r--sys-apps/openrc/openrc-0.34.11-r2.ebuild (renamed from sys-apps/openrc/openrc-0.34.11-r1.ebuild)27
1 files changed, 23 insertions, 4 deletions
diff --git a/sys-apps/openrc/openrc-0.34.11-r1.ebuild b/sys-apps/openrc/openrc-0.34.11-r2.ebuild
index 44e6b20b..092d9944 100644
--- a/sys-apps/openrc/openrc-0.34.11-r1.ebuild
+++ b/sys-apps/openrc/openrc-0.34.11-r2.ebuild
@@ -292,10 +292,6 @@ pkg_postinst() {
"${EROOT}"etc/runlevels
fi
fi
- # Redcore Linux change : enable DKMS at boot runlevel
- if use dkms; then
- ln -sf /etc/init.d/dkms /etc/runlevels/boot
- fi
if use hppa; then
elog "Setting the console font does not work on all HPPA consoles."
@@ -339,4 +335,27 @@ pkg_postinst() {
ewarn "without networking."
ewarn
fi
+
+ # Redcore Linux tweaks:
+
+ #1 : move dbus service to boot runlevel
+ if [ -e "${ROOT}"etc/init.d/dbus ]; then
+ if [ "$(rc-config list boot | grep dbus)" != "" ]; then
+ ewarn "dbus is currently started from boot runlevel, skiping"
+ elif [ "$(rc-config list default | grep dbus)" != "" ]; then
+ ewarn "dbus is currently started from default runlevel, moving"
+ "${ROOT}"sbin/rc-update del dbus default
+ "${ROOT}"sbin/rc-update del dbus boot
+ fi
+ fi
+
+ #2 : add dkms service to boot runlevel
+ if [ -e "${ROOT}"etc/init.d/dkms ] && use dkms; then
+ if [ "$(rc-config list boot | grep dkms)" != "" ]; then
+ ewarn "dkms is currently started from boot runlevel, skiping"
+ else
+ ewarn "dkms is currently not started from boot runlevel, enabling"
+ "${ROOT}"sbin/rc-update add dkms boot
+ fi
+ fi
}