Update: update-static-dns (#17)

This commit is contained in:
Uchiha Kakashi
2022-02-05 14:45:21 +08:00
committed by GitHub
parent 955324e0a7
commit db3ee18a97
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^
if [ -z "$ip_addr" ]; then if [ -z "$ip_addr" ]; then
echo "Can't resolve '$host'." >&2 echo "Can't resolve '$host'." >&2
exit 1 continue
fi fi
echo "$ip_addr $host" | busybox tee -a /system/etc/hosts echo "$ip_addr $host" | busybox tee -a /system/etc/hosts

View File

@@ -10,7 +10,7 @@ for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^
if [ -z "$ip_addr" ]; then if [ -z "$ip_addr" ]; then
echo "Can't resolve '$host'." >&2 echo "Can't resolve '$host'." >&2
exit 1 continue
fi fi
echo "$ip_addr $host" | busybox tee -a /system/etc/hosts echo "$ip_addr $host" | busybox tee -a /system/etc/hosts