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

index 7719ce4d484bc33423df543240e745650491a820..33ed1e077171328da890b96e391b469f84b576a1 100644 (file)
@@ -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