Skip to content

Commit 541f739

Browse files
authored
Update autoupdate.sh
1 parent dce54c7 commit 541f739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/autoupdate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
cd /mnt/mmcblk0p2
44
rm -rf artifact R2S*.zip FriendlyWrt*img*
5-
wget https://github.com/klever1988/nanopi-openwrt/releases/download/R2S-Minimal-$(date +%Y-%m-%d)/R2S-Minimal-$(date +%Y-%m-%d)-ROM.zip
5+
wget https://github.com/biliwala/nanopi-openwrt/releases/download/R2S-Minimal-$(date +%Y-%m-%d)/R2S-Minimal-$(date +%Y-%m-%d)-ROM.zip
66
if [ -f /mnt/mmcblk0p2/R2S*.zip ]; then
77
echo -e '\e[92m今天固件已下载,准备解压\e[0m'
88
else
99
echo -e '\e[91m今天的固件还没更新,尝试下载昨天的固件\e[0m'
10-
wget https://github.com/klever1988/nanopi-openwrt/releases/download/R2S-Minimal-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)/R2S-Minimal-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)-ROM.zip
10+
wget https://github.com/biliwala/nanopi-openwrt/releases/download/R2S-Minimal-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)/R2S-Minimal-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)-ROM.zip
1111
if [ -f /mnt/mmcblk0p2/R2S*.zip ]; then
1212
echo -e '\e[92m昨天的固件已下载,准备解压\e[0m'
1313
else

0 commit comments

Comments
 (0)