update-static-dns: fix bug

Currently, update-static-dns will save the index.html under the
workdir. This commit will fix this unexpected behaviour.
This commit is contained in:
Chongyun Lee
2022-07-12 15:19:55 +08:00
parent ff01256db8
commit 4c08c24bce
2 changed files with 2 additions and 2 deletions

View File

@@ -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