更新 script/generate_bash_product_id.sh

This commit is contained in:
Pan Qiancheng 2025-06-09 16:53:14 +08:00
parent e60d797498
commit ec30da7ab1
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if [ ! -f "$UUID_FILE" ]; then
chmod 644 "$UUID_FILE" chmod 644 "$UUID_FILE"
# 收集硬件信息 # 收集硬件信息
CPU_MODEL=$(lscpu | grep "Model name" | awk -F: '{print $2}' | sed 's/^ *//') CPU_MODEL=$(lscpu | awk -F: '/^Model name:/ {gsub(/^ */, "", $2); print $2; exit}')
ARCHITECTURE=$(uname -m) ARCHITECTURE=$(uname -m)
PCIE_DEVICES_RAW=$(timeout 3s lspci -nn || true) PCIE_DEVICES_RAW=$(timeout 3s lspci -nn || true)