From 5ede60da3ca1853f11c4eca378bb7ffa5d11480e Mon Sep 17 00:00:00 2001 From: John Doe Date: Sat, 10 Apr 2021 03:28:28 +0800 Subject: [PATCH] autoupdate: enable nanopi r1, orangepi r1 plus --- scripts/autoupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autoupdate.sh b/scripts/autoupdate.sh index 3dffb86..2428dd4 100644 --- a/scripts/autoupdate.sh +++ b/scripts/autoupdate.sh @@ -15,7 +15,7 @@ wget -P /tmp https://ghproxy.com/https://raw.githubusercontent.com/klever1988/na wget -P /tmp https://ghproxy.com/https://raw.githubusercontent.com/klever1988/nanopi-openwrt/zstd-bin/ddnz chmod +x /tmp/truncate /tmp/ddnz -board_id=$(cat /etc/board.json | jsonfilter -e '@["model"].id' | sed 's/friendlyarm,nanopi-//;s/-h5//') +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/') mount -t tmpfs -o remount,size=850m tmpfs /tmp rm -rf /tmp/upg && mkdir /tmp/upg && cd /tmp/upg set +e