forked from DL-Mirrors/termux-docker
static dns: acquire hostname through 'busybox hostname'
Separate hostname utility could be unavailable.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user