summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-03-19 17:36:56 +0100
committerPacho Ramos <pacho@gentoo.org>2023-03-19 17:56:32 +0100
commit0c7788a137d045c3628cf330e6cef9fd4f3808d8 (patch)
tree30a9f63e4de7ff22f1626ce73f57a7a4f33642be /sys-power/power-profiles-daemon
parentsys-power/power-profiles-daemon: add openrc init script (diff)
downloadgentoo-0c7788a137d045c3628cf330e6cef9fd4f3808d8.tar.gz
gentoo-0c7788a137d045c3628cf330e6cef9fd4f3808d8.tar.bz2
gentoo-0c7788a137d045c3628cf330e6cef9fd4f3808d8.zip
sys-power/power-profiles-daemon: Add elog info for openRC users
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sys-power/power-profiles-daemon')
-rw-r--r--sys-power/power-profiles-daemon/power-profiles-daemon-0.12-r1.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-power/power-profiles-daemon/power-profiles-daemon-0.12-r1.ebuild b/sys-power/power-profiles-daemon/power-profiles-daemon-0.12-r1.ebuild
index 36656c234b6d..84451d51dd70 100644
--- a/sys-power/power-profiles-daemon/power-profiles-daemon-0.12-r1.ebuild
+++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.12-r1.ebuild
@@ -59,7 +59,6 @@ src_configure() {
src_install() {
meson_src_install
python_fix_shebang "${D}"/usr/bin/powerprofilesctl
-
newinitd "${FILESDIR}/power-profiles-daemon.initd" power-profiles-daemon
}
@@ -68,6 +67,8 @@ pkg_postinst() {
if systemd_is_booted; then
elog "You need to enable the service:"
elog "# systemctl enable ${PN}"
+ else
+ elog "# rc-update add ${PN} default"
fi
fi
}