From: Paul Hänsch Date: Thu, 26 Sep 2019 10:44:06 +0000 (+0200) Subject: hostname to hosts file correction 2 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3dad161953c83b6a23ac663933802701755426a2;p=blast hostname to hosts file correction 2 --- 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