Fix cpu-opt patch in "install.sh" and make "prepare" verbose about it (#439)

Closes: #438

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
Adel Kara Slimane
2022-02-17 19:50:41 +01:00
committed by GitHub
parent 38513e05b4
commit 5f36c6353e
2 changed files with 27 additions and 43 deletions

View File

@@ -210,36 +210,16 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then
cd "$_where"
case "$_basever" in
"57")
if [ "$_basever" = "54" ]; then
opt_ver="4.19-5.4"
elif [ "$_basever" = "57" ]; then
opt_ver="5.7"
opt_alternative_url="true"
;;
"58")
elif [[ "$_basever" =~ ^(58|59|510|511|512|513|514)$ ]]; then
opt_ver="5.8-5.14"
;;
"59")
opt_ver="5.8-5.14"
;;
"510")
opt_ver="5.8-5.14"
;;
"511")
opt_ver="5.8-5.14"
;;
"512")
opt_ver="5.8-5.14"
;;
"513")
opt_ver="5.8-5.14"
;;
"514")
opt_ver="5.8-5.14"
;;
"515")
else
opt_ver="5.15+"
;;
esac
fi
if [ -n "$opt_ver" ]; then
msg2 "Downloading Graysky2's CPU optimisations patch"