From 3dad161953c83b6a23ac663933802701755426a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 26 Sep 2019 12:44:06 +0200 Subject: [PATCH] hostname to hosts file correction 2 --- modules/default.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default.mk b/modules/default.mk index 7719ce4..33ed1e0 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -102,7 +102,7 @@ _users: ${CFGROOT} _hostname: ${CFGROOT} printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname" - sed -Ei "s;^127\.0\.0\.1.*$$;\1 $${hostname};" "$${CFGROOT}/etc/hosts" + sed -Ei "s;^127\.0\.0\.1.*$$;\& $${hostname};" "$${CFGROOT}/etc/hosts" ifdef wifi _config: ${CFGROOT}/etc/network/interfaces.d/wifi -- 2.39.2