更新 script/generate_bash_product_id.sh
This commit is contained in:
parent
1a680a3f81
commit
9d2c19d7a1
|
|
@ -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或系统架构信息,注册终止"
|
||||
|
|
|
|||
Loading…
Reference in New Issue