fix(bling,laptop): check first if power-profiles-daemon is installed

This commit is contained in:
tulili 2023-09-25 09:24:34 -03:00
parent 5d9aa55b4d
commit 14db12cab9
No known key found for this signature in database

View file

@ -5,7 +5,12 @@ set -oue pipefail
wget "https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo" \
-O "/etc/yum.repos.d/_copr_ublue-os_staging.repo"
rpm-ostree remove power-profiles-daemon --install fprintd tlp tlp-rdw
if rpm -qa | grep power-profiles-daemon ; then
rpm-ostree remove power-profiles-daemon --install=fprintd --install=tlp --install=tlp-rdw
else
rpm-ostree install fprintd tlp tlp-rdw
fi
systemctl enable tlp
systemctl enable fprintd
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os_staging.repo