Merge pull request #49 from tulilirockz/feat-laptop-option
feat(bling,module): add laptop options
This commit is contained in:
commit
395e0c4e96
4 changed files with 153 additions and 1 deletions
|
|
@ -19,5 +19,5 @@ install:
|
|||
# - devpod # https://devpod.sh/ as an rpm
|
||||
# - gnome-vrr # enables gnome-vrr for your image
|
||||
# - container-tools # installs container-related tools onto /usr/bin: kind, kubectx, docker-compose and kubens
|
||||
|
||||
# - laptop # installs TLP and configures your system for laptop usage # Make sure to include the '- laptop: / usr' in the "file" module.
|
||||
```
|
||||
|
|
|
|||
16
modules/bling/installers/laptop.sh
Normal file
16
modules/bling/installers/laptop.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Tell build process to exit if there are any errors.
|
||||
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"
|
||||
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