Revert "更新脚本添加qemu虚拟机判断"

This commit is contained in:
klever1988 2021-07-31 00:01:30 +08:00 committed by GitHub
parent 0b846ca52b
commit 1b29f930aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,6 @@ wget -P /tmp https://ghproxy.com/https://raw.githubusercontent.com/klever1988/na
chmod +x /tmp/truncate /tmp/ddnz
board_id=$(cat /etc/board.json | jsonfilter -e '@["model"].id' | sed 's/friendly.*,nanopi-//;s/xunlong,orangepi-//;s/^r1s-h5$/r1s/;s/^r1$/r1s-h3/;s/^r1-plus$/r1p/')
if [[ $board_id =~ .*qemu.* ]]; then
echo -e '\e[91m当前环境为qemu虚拟机默认下载x86固件如需停止请按Ctrl+C\e[0m'
board_id=x86
fi
mount -t tmpfs -o remount,size=850m tmpfs /tmp
rm -rf /tmp/upg && mkdir /tmp/upg && cd /tmp/upg
set +e