From 9d2c19d7a1d71901d7dc6f8d0e75cb8f09a2b476 Mon Sep 17 00:00:00 2001 From: Pan Qiancheng <1220204124@zust.edu.cn> Date: Mon, 9 Jun 2025 14:01:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20script/generate=5Fbash=5Fp?= =?UTF-8?q?roduct=5Fid.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/generate_bash_product_id.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/generate_bash_product_id.sh b/script/generate_bash_product_id.sh index b026c41..912efce 100644 --- a/script/generate_bash_product_id.sh +++ b/script/generate_bash_product_id.sh @@ -14,7 +14,7 @@ if [ ! -f "$UUID_FILE" ]; then # 收集硬件信息 CPU_MODEL=$(lscpu | grep "Model name" | awk -F: '{print $2}' | sed 's/^ *//') ARCHITECTURE=$(uname -m) - PCIE_DEVICES_RAW=$(timeout 3s lspci || true) + PCIE_DEVICES_RAW=$(timeout 3s lspci -nn || true) if [ -z "$CPU_MODEL" ] || [ -z "$ARCHITECTURE" ]; then echo "❌ 无法收集到CPU或系统架构信息,注册终止"