slitaz-tools rev 795
tazinst: add TGT_HOSTNAME to /etc/hosts
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Jan 11 15:21:41 2013 +0000 (2013-01-11) |
parents | 066dd36cc2cc |
children | e4fe3bf50575 |
files | installer/tazinst |
line diff
1.1 --- a/installer/tazinst Tue Jan 08 11:09:03 2013 -0500 1.2 +++ b/installer/tazinst Fri Jan 11 15:21:41 2013 +0000 1.3 @@ -704,7 +704,7 @@ 1.4 sleep 2 1.5 # Set hostname. 1.6 msg "$(gettext "Configuring host name:") $TGT_HOSTNAME" 1.7 - echo $TGT_HOSTNAME > etc/hostname 1.8 + sed -i s/slitaz/$TGT_HOSTNAME/ etc/hostname etc/hosts 1.9 } 1.10 1.11 # Set root passwd and create user after rootfs extraction.