Update change_scx.sh
This commit is contained in:
parent
9668621983
commit
be609d9e20
@ -4,7 +4,7 @@ if [[ "$1" == "scx_disabled" ]]; then
|
|||||||
systemctl stop scx & systemctl disable scx
|
systemctl stop scx & systemctl disable scx
|
||||||
else
|
else
|
||||||
set -e
|
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 enable --now scx
|
||||||
systemctl restart scx
|
systemctl restart scx
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user