We want to check for the simple variable names for cpusched, not the full names
Fixes https://github.com/Frogging-Family/linux-tkg/issues/197
This commit is contained in:
parent
70d92d78b2
commit
93e728b93c
@ -179,26 +179,30 @@ _tkg_initscript() {
|
||||
# CPU SCHED selector
|
||||
if [ "$_basever" = "54" ] || [ "$_basever" = "57" ]; then
|
||||
_CPUSCHEDARRAY=("PDS" "MuQSS" "BMQ" "CFS")
|
||||
_CPUSCHEDVARARRAY=("pds" "muqss" "bmq" "cfs")
|
||||
elif [ "$_basever" = "58" ]; then
|
||||
_CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "CFS")
|
||||
_CPUSCHEDVARARRAY=("upds" "pds" "bmq" "cfs")
|
||||
elif [ "$_basever" = "59" ] || [ "$_basever" = "510" ]; then
|
||||
_CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
|
||||
_CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "cfs")
|
||||
elif [ "$_basever" = "511" ]; then
|
||||
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
|
||||
_CPUSCHEDVARARRAY=("pds" "bmq" "muqss" "cfs")
|
||||
else
|
||||
_CPUSCHEDARRAY=("CFS")
|
||||
fi
|
||||
|
||||
if [ -z "$_cpusched" ] && [ ! -e "${_path}"/cpuschedset ]; then
|
||||
_cpuschedselector
|
||||
elif [[ ${_CPUSCHEDARRAY[*]} =~ "$_cpusched" ]]; then
|
||||
elif [[ ${_CPUSCHEDVARARRAY[*]} =~ "$_cpusched" ]]; then
|
||||
if ( [ "$_cpusched" = "muqss" ] || [ "$_cpusched" = "MuQSS" ] ); then
|
||||
echo "_cpusched=\"MuQSS\"" > "${_path}"/cpuschedset
|
||||
else
|
||||
echo "_cpusched=\"$_cpusched\"" > "${_path}"/cpuschedset
|
||||
fi
|
||||
else
|
||||
if [ "$_nofallback" != "true" ] && ! [[ ${_CPUSCHEDARRAY[*]} =~ "$_cpusched" ]]; then
|
||||
if [ "$_nofallback" != "true" ] && ! [[ ${_CPUSCHEDVARARRAY[*]} =~ "$_cpusched" ]]; then
|
||||
warning "Your cpusched selection ( $_cpusched ) is not available for the selected kernel version. Please select another:"
|
||||
_cpuschedselector
|
||||
elif [ "$_nofallback" = "true" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user