From 4c08c24bceb13cecd1d18153dfddbbf5fe70bb71 Mon Sep 17 00:00:00 2001 From: Chongyun Lee <45286352+licy183@users.noreply.github.com> Date: Tue, 12 Jul 2022 15:19:55 +0800 Subject: [PATCH] update-static-dns: fix bug Currently, update-static-dns will save the index.html under the workdir. This commit will fix this unexpected behaviour. --- system/arm/bin/update-static-dns | 2 +- system/x86/bin/update-static-dns | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/arm/bin/update-static-dns b/system/arm/bin/update-static-dns index 0e0df17..aeb5d45 100755 --- a/system/arm/bin/update-static-dns +++ b/system/arm/bin/update-static-dns @@ -18,7 +18,7 @@ for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^ done # Check whether IPv6 is available. -busybox wget http://[2606:4700:4700::1111] >/dev/null 2>&1 +busybox wget http://[2606:4700:4700::1111] -O /dev/null -o /dev/null if [[ $? != 0 ]]; then exit fi diff --git a/system/x86/bin/update-static-dns b/system/x86/bin/update-static-dns index 0e0df17..aeb5d45 100755 --- a/system/x86/bin/update-static-dns +++ b/system/x86/bin/update-static-dns @@ -18,7 +18,7 @@ for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^ done # Check whether IPv6 is available. -busybox wget http://[2606:4700:4700::1111] >/dev/null 2>&1 +busybox wget http://[2606:4700:4700::1111] -O /dev/null -o /dev/null if [[ $? != 0 ]]; then exit fi