fix(bling,laptop): check first if power-profiles-daemon is installed
This commit is contained in:
parent
5d9aa55b4d
commit
14db12cab9
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue