pika-kernel-manager/data/scripts/change_scx.sh
Ward Nakchbandi (Cosmic Fusion) be609d9e20
Update change_scx.sh
2024-06-24 01:53:17 +03:00

10 lines
233 B
Bash
Executable File

#! /bin/bash
if [[ "$1" == "scx_disabled" ]]; then
systemctl stop scx & systemctl disable scx
else
set -e
sed -i "s/SCX_SCHEDULER=.*/SCX_SCHEDULER="$1"/" /etc/default/scx
systemctl enable --now scx
systemctl restart scx
fi