通用BIOS自动化修改脚本


root@bytedance:/luxshare/Tool/Seattle# cat ../Hamilton/LuxBIOSModifyNew.sh
#!/bin/bash

python /Diag/UtilsInstall.py -p Hamilton

LuxSCELNX_64 /o /s /tmp/BIOS.script.log
#cat -n /tmp/BIOS.script.log > /tmp/tmp.origin
cat /tmp/BIOS.script.log > /tmp/tmp.origin
cat -n /tmp/BIOS.script.log|grep $(($(cat -n /tmp/BIOS.script.log|grep "Patrol Scrub Interval"|awk '{print $1}') + 6 ))
v_old=$(cat -n /tmp/BIOS.script.log|grep $(($(cat -n /tmp/BIOS.script.log|grep "Patrol Scrub Interval"|awk '{print $1}') + 6 )))
v_line=$(($(cat -n /tmp/BIOS.script.log|grep "Patrol Scrub Interval"|awk '{print $1}') + 6 ))
v_line1=$(($(cat -n /tmp/BIOS.script.log|grep "Setup Question"|grep "= Corrected Error$"|awk '{print $1}') + 6 ))
v_line2=$(($(cat -n /tmp/BIOS.script.log|grep "Setup Question"|grep "= Correc

你可能感兴趣的:(网络,linux,服务器)