# 取CPU+MAC地址生成MD5字符串作为密钥
sudo dmidecode -t 4|grep ID | sort -u | awk -F ': ' '{print $2}' > 1.txt
echo -e "#"'!'"/bin/bash\ninterfaces=\$(ls /sys/class/net)\nfor interface in \$interfaces\ndo\nif [ \$interface == "lo" ]\nthen\ncontinue\nfi\nmac_address=\$(cat /sys/class/net/\$interface/address)\necho \"\$mac_address\"\ndone" > getMac.sh
chmod +x getMac.sh
./getMac.sh  | sort -u >> 1.txt
rm -rf ./getMac.sh
md5sum 1.txt | awk '{print $1}' > 2.txt
# 将 2.txt 中的内容写入系统变量
random_variable=$(cat 2.txt)
export SYSTEM_VAR=$random_variable
# 删除过程文件
rm -rf 1.txt
cat 2.txt