prepare: handle properly optiprofile from customization.cfg
(#254)
Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
committed by
GitHub
parent
dea8847167
commit
9d88cf0cd5
@@ -238,15 +238,16 @@ _tkg_initscript() {
|
||||
cp "$_where"/linux-tkg-config/${_basekernel}/* "$_path"
|
||||
fi
|
||||
|
||||
if [ -z "$_OPTIPROFILE" ]; then
|
||||
if [[ -z "$_OPTIPROFILE" || ! "$_OPTIPROFILE" =~ ^(1|2|3)$ ]]; then
|
||||
# Prompt about optimized configurations. Available variable values will overwrite customization.cfg/external config ones.
|
||||
plain "Do you want to use a predefined optimized profile?"
|
||||
_default_index="0"
|
||||
_prompt_from_array "Custom" "Ryzen Desktop (Performance)" "Other Desktop (Performance)"
|
||||
_OPTIPROFILE=$((${_selected_index}+1))
|
||||
fi
|
||||
if [ "$_selected_index" = "1" ]; then
|
||||
if [ "$_OPTIPROFILE" = "2" ]; then
|
||||
source "$_where"/linux-tkg-config/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 ""
|
||||
elif [ "$_selected_index" = "2" ]; then
|
||||
elif [ "$_OPTIPROFILE" = "3" ]; then
|
||||
source "$_where"/linux-tkg-config/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 ""
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user