autoupdate: use x86 image on all x86_64 devices
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user