From dc86e2efa313ad79a8ac192a7a068de1a835a050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 11 Jan 2024 22:29:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20x86=20=E4=B8=8B=E9=98=BB=E6=AD=A2?= =?UTF-8?q?=E5=9C=A8=E4=B8=8D=E6=94=AF=E6=8C=81=20v2=20=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E9=9B=86=E7=9A=84=20CPU=20=E4=B8=8A=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install_panel.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index d42525bd..c5712daf 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -44,6 +44,12 @@ Prepare_System() { exit 1 fi + if [ "${ARCH}" == "x86_64" ]; then + if [ "$(cat /proc/cpuinfo | grep -c ssse3)" -lt "1" ]; then + abort "错误:至少需运行在支持 x86-64-v2 的 CPU 上,请开启对应 CPU 指令集的支持" + fi + fi + kernelVersion=$(uname -r | awk -F '.' '{print $1}') if [ "${kernelVersion}" != "5" ] && [ "${kernelVersion}" != "6" ]; then echo -e $HR