diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 70fba61..74a6f19 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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