]> git.plutz.net Git - blast/commitdiff
hostname to hosts file correction 3
authorPaul Hänsch <paul@plutz.net>
Thu, 26 Sep 2019 15:24:06 +0000 (17:24 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 26 Sep 2019 15:24:06 +0000 (17:24 +0200)
modules/default.mk

index 33ed1e077171328da890b96e391b469f84b576a1..7c3133f913fa182f348e591fdc135ee282f21971 100644 (file)
@@ -102,7 +102,7 @@ _users: ${CFGROOT}
 
 _hostname: ${CFGROOT}
        printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname"
-       sed -Ei "s;^127\.0\.0\.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