2024-06-19 23:12:17 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
if [[ "$1" == "scx_disabled" ]]; then
|
|
|
|
systemctl stop scx & systemctl disable scx
|
|
|
|
else
|
|
|
|
set -e
|
2024-06-24 00:53:17 +02:00
|
|
|
sed -i "s/SCX_SCHEDULER=.*/SCX_SCHEDULER="$1"/" /etc/default/scx
|
2024-06-19 23:12:17 +02:00
|
|
|
systemctl enable --now scx
|
|
|
|
systemctl restart scx
|
|
|
|
fi
|