diff options
author | ccsmart <ccsmart@smartpal.de> | 2005-07-16 19:39:04 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-16 19:39:04 +0000 |
commit | 53aaeb6d952beea5a2df399321b286c6a72b025c (patch) | |
tree | 64d5439a18668a330d98a5ac4b7ecb6771c4d2a4 /packages/openslug-init/openslug-init-0.10/turnup | |
parent | e79aeff420bed2d70be6ba2075343f3d97db3eb0 (diff) |
Adding own hostname to hosts. Offered by [g2].
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/turnup')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/turnup | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/turnup b/packages/openslug-init/openslug-init-0.10/turnup index 977fa1f520..ce504b022e 100644 --- a/packages/openslug-init/openslug-init-0.10/turnup +++ b/packages/openslug-init/openslug-init-0.10/turnup @@ -753,8 +753,10 @@ init_network() { read_one "First DNS server" network dns_server1 read_one "Second DNS server" network dns_server2 read_one "Third DNS server" network dns_server3 + echo "$ip_addr $disk_server_name" >> /etc/hosts + ;; + dhcp) sed -i -e "s/localhost\$/localhost $disk_server_name/" /etc/hosts ;; - dhcp) ;; *) bootproto=dhcp;; esac # |