autoupdate: use x86 image on all x86_64 devices

This commit is contained in:
John Doe
2022-05-04 07:17:04 +08:00
parent d907a7733c
commit 6f42da23b7
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ wget -NP /tmp https://ghproxy.com/https://raw.githubusercontent.com/klever1988/n
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/;s/^r1-plus-lts$/r1p-lts/;s/default-string-default-string/x86/;s/vmware-inc-vmware7-1/x86/')
arch=`uname -m`
[ $arch == 'x86_64' ] && board_id='x86';
mount -t tmpfs -o remount,size=850m tmpfs /tmp
rm -rf /tmp/upg && mkdir /tmp/upg && cd /tmp/upg
set +e