sys-apps/kmod: Do not print OpenRC messages on systemd

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
Mikle Kolyada
2020-09-20 13:04:13 +03:00
parent 6c3ba15cf1
commit a6d07608de
3 changed files with 3 additions and 3 deletions

View File

@@ -190,7 +190,7 @@ pkg_postinst() {
fi
if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
if ! has_version sys-apps/systemd && [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
ewarn
ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
ewarn "kernel modules to have required static nodes!"

View File

@@ -194,7 +194,7 @@ pkg_postinst() {
fi
if [[ -e ${EROOT}/etc/runlevels/sysinit ]]; then
if [[ ! -e ${EROOT}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
if ! has_version sys-apps/systemd && [[ ! -e ${EROOT}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
ewarn
ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
ewarn "kernel modules to have required static nodes!"

View File

@@ -192,7 +192,7 @@ pkg_postinst() {
fi
if [[ -e ${EROOT}/etc/runlevels/sysinit ]]; then
if [[ ! -e ${EROOT}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
if ! has_version sys-apps/systemd && [[ ! -e ${EROOT}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
ewarn
ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
ewarn "kernel modules to have required static nodes!"