summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsayad2021-01-28 10:21:45 +0600
committersayad2021-01-28 10:21:45 +0600
commit773167b8ead2d962b27f9287cc672792ead2d0a2 (patch)
tree3831d8bb6969de1c4c99df71dc17f4edea4f5c47
parent14449b6b3e2fdea2f529ad236d4b2a61863d18e0 (diff)
downloadaur-773167b8ead2d962b27f9287cc672792ead2d0a2.tar.gz
Bug fix
-rw-r--r--prepare13
1 files changed, 6 insertions, 7 deletions
diff --git a/prepare b/prepare
index 95b6ef9ad535..4392adb966e8 100644
--- a/prepare
+++ b/prepare
@@ -13,8 +13,6 @@ _tkg_initscript() {
source "$_EXT_CONFIG_PATH" && msg2 "External configuration file $_EXT_CONFIG_PATH will be used to override customization.cfg values.\n"
fi
-_distro="Arch"
-
# create build dir early
_path="${_where}"
@@ -46,9 +44,9 @@ _distro="Arch"
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 "{$_path}"/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 ""
+ source "$_where"/linux-tkg-config/ryzen-desktop-profile.cfg && msg2 "Ryzen Desktop (Performance) profile will be used." && msg2 ""
elif [ "$_OPTIPROFILE" = "3" ]; then
- source "{$_path}"/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 ""
+ source "$_where"/linux-tkg-config/generic-desktop-profile.cfg && msg2 "Generic Desktop (Performance) profile will be used." && msg2 ""
fi
# source cpuschedset early if present
@@ -1023,10 +1021,11 @@ _tkg_srcprep() {
read -rp "`echo $' > N/y : '`" CONDITIONMPDB;
fi
if [[ "$CONDITIONMPDB" =~ [yY] ]] || [ "$_modprobeddb" = "true" ]; then
- if [ "$_distro" != "Void" ]; then
- sudo modprobed-db recall
+ if [ "$_config_expert" = "true" ];then
+ make LSMOD=${HOME}/.config/modprobed.db localmodconfig ${llvm_opt}
+ else
+ yes "" | make LSMOD=${HOME}/.config/modprobed.db localmodconfig ${llvm_opt}
fi
- yes "" | make localmodconfig ${llvm_opt}
fi
if [ true = "$_config_fragments" ]; then