mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-24 03:59:45 +01:00
24 lines
651 B
Bash
Executable File
24 lines
651 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# This is a simple script to mask services in conflict with tlp
|
|
|
|
set -x
|
|
# and when doing that, why not enable tlp?
|
|
tlp start
|
|
tlp-rdw enable
|
|
# The service is only meant for boot so no starting now
|
|
systemctl enable tlp.service
|
|
|
|
# Stop the services if they are running
|
|
systemctl disable --quiet --now power-profiles-daemon.service
|
|
systemctl disable --quiet --now systemd-rfkill.service
|
|
|
|
# Actual masking
|
|
systemctl mask power-profiles-daemon.service
|
|
systemctl mask systemd-rfkill.service systemd-rfkill.socket
|
|
|
|
# In case this script is ran multiple times in succession like when I did
|
|
# when writing it
|
|
systemctl daemon-reload
|
|
|
|
set +x
|