Update change_scx.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-06-24 01:53:17 +03:00 committed by GitHub
parent 9668621983
commit be609d9e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ 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
sed -i "s/SCX_SCHEDULER=.*/SCX_SCHEDULER="$1"/" /etc/default/scx
systemctl enable --now scx
systemctl restart scx
fi