diff options
author | sayad | 2021-01-28 09:40:33 +0600 |
---|---|---|
committer | sayad | 2021-01-28 09:40:33 +0600 |
commit | 174abff815a7077161b6c12c7de507218235d9ac (patch) | |
tree | 87f5142fb192469b87933a541808c648b233240c /prepare | |
parent | 5d2550ca5ab1fd6e7b1610c62ef401d4ea72a24a (diff) | |
download | aur-174abff815a7077161b6c12c7de507218235d9ac.tar.gz |
Bug fix
Diffstat (limited to 'prepare')
-rw-r--r-- | prepare | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -8,6 +8,18 @@ ver510=11 ver511=rc5 _tkg_initscript() { + + if [ -z "$_OPTIPROFILE" ] && [ ! -e "$_path"/cpuschedset ]; 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?" + read -rp "`echo $' > 1.Custom\n 2.Ryzen Desktop (Performance)\n 3.Other Desktop (Performance)\nchoice[1-3?]: '`" _OPTIPROFILE; + fi + if [ "$_OPTIPROFILE" = "2" ]; then + source "$_where"/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 "" && cp "$_where"/ryzen-desktop-profile.cfg ~/.config/linux-tkg.cfg + elif [ "$_OPTIPROFILE" = "3" ]; then + source "$_where"/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 "" && cp "$_where"/ryzen-desktop-profile.cfg ~/.config/linux-tkg.cfg + fi + # Load external configuration file if present. Available variable values will overwrite customization.cfg ones. if [ -e "$_EXT_CONFIG_PATH" ]; then source "$_EXT_CONFIG_PATH" && msg2 "External configuration file $_EXT_CONFIG_PATH will be used to override customization.cfg values.\n" @@ -38,17 +50,6 @@ _tkg_initscript() { source "${_path}"/versel fi - if [ -z "$_OPTIPROFILE" ] && [ ! -e "$_path"/cpuschedset ]; 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?" - read -rp "`echo $' > 1.Custom\n 2.Ryzen Desktop (Performance)\n 3.Other Desktop (Performance)\nchoice[1-3?]: '`" _OPTIPROFILE; - fi - if [ "$_OPTIPROFILE" = "2" ]; then - source "$_where"/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 "" && cp "$_where"/ryzen-desktop-profile.cfg ~/.config/linux-tkg.cfg - elif [ "$_OPTIPROFILE" = "3" ]; then - source "$_where"/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 "" && cp "$_where"/ryzen-desktop-profile.cfg ~/.config/linux-tkg.cfg - fi - # source cpuschedset early if present if [ -e "${_path}"/cpuschedset ]; then source "${_path}"/cpuschedset |