From 2c9dc33c7f1c14d7ae328b08f634d8fb4f05c6e9 Mon Sep 17 00:00:00 2001 From: Ez Diy Date: Sun, 27 Sep 2020 05:12:25 +0200 Subject: [PATCH] Make our own hostname resolvable --- svc/etc/init.d/00-net.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/svc/etc/init.d/00-net.sh b/svc/etc/init.d/00-net.sh index f5a58e2..484819b 100755 --- a/svc/etc/init.d/00-net.sh +++ b/svc/etc/init.d/00-net.sh @@ -3,3 +3,9 @@ ifconfig lo up 127.0.0.1 # cca 100 seconds to drop dead tcp sessions sysctl -w net.ipv4.tcp_retries2=9 + +# fix for slow smb mounts etc +umount /etc/hosts +(cat /etc/hosts;echo 127.0.0.1 `hostname`) >> /var/tmp/hosts +mount -o bind /var/tmp/hosts /etc/hosts +