static dns: acquire hostname through 'busybox hostname'

Separate hostname utility could be unavailable.
This commit is contained in:
Leonid Pliushch
2021-07-23 13:53:08 +03:00
parent fdd10abd36
commit faa8a3015f
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
export PATH=/system/bin export PATH=/system/bin
echo "127.0.0.1 localhost $(hostname)" > /system/etc/hosts echo "127.0.0.1 localhost $(busybox hostname)" > /system/etc/hosts
echo "::1 ip6-localhost" >> /system/etc/hosts echo "::1 ip6-localhost" >> /system/etc/hosts
for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do

View File

@@ -2,7 +2,7 @@
export PATH=/system/bin export PATH=/system/bin
echo "127.0.0.1 localhost $(hostname)" > /system/etc/hosts echo "127.0.0.1 localhost $(busybox hostname)" > /system/etc/hosts
echo "::1 ip6-localhost" >> /system/etc/hosts echo "::1 ip6-localhost" >> /system/etc/hosts
for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do