Skip to content

Commit

Permalink
Update bbrv3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
opiran-club authored Oct 15, 2023
1 parent 3d6fc91 commit e1d5d6a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bbrv3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ cpu_support_info=$(/usr/bin/awk -f <(wget -qO - https://raw.githubusercontent.co
}

install_xanmod() {
clear
cpu_support_info=$(/usr/bin/awk -f <(wget -qO - https://raw.githubusercontent.com/opiran-club/VPS-Optimizer/main/checkcpu.sh))
clear
cpu_support_info=$(/usr/bin/awk -f <(wget -qO - https://raw.githubusercontent.com/opiran-club/VPS-Optimizer/main/checkcpu.sh))

if [[ $cpu_support_info == "CPU supports x86-64-v"* ]]; then
cpu_support_level=${cpu_support_info#CPU supports x86-64-v}
echo -e "${CYAN}Current CPU Level: x86-64 Level $cpu_support_level${NC}"
return $cpu_support_level
else
echo -e "${RED}OS or CPU level is not supported by the XanMod kernel and cannot be installed.${NC}"
return 0
fi
return 1 # Return an error code here

echo ""
echo ""
echo -e "${YELLOW} Installing XanMod kernel${NC}"
Expand All @@ -114,8 +114,6 @@ install_xanmod() {
temp_folder=$(mktemp -d)
cd $temp_folder

cpu_level

case $cpu_support_level in
1)
apt-get update
Expand All @@ -135,7 +133,7 @@ install_xanmod() {
;;
*)
echo -e "${RED}Your CPU is not supported by the XanMod kernel and cannot be installed.${NC}"
return 1
return 1 # Return an error code here
;;
esac

Expand Down

0 comments on commit e1d5d6a

Please sign in to comment.