pika-kernel-manager/data/scripts/change_scx.sh

10 lines
233 B
Bash
Raw Normal View History

2024-06-19 23:12:17 +02:00
#! /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