pika-kernel-manager/data/scripts/change_scx.sh
Ward from fusion-voyager-3 05fd326f62 some scx impl
2024-06-20 00:12: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