From 53aaeb6d952beea5a2df399321b286c6a72b025c Mon Sep 17 00:00:00 2001 From: ccsmart Date: Sat, 16 Jul 2005 19:39:04 +0000 Subject: Adding own hostname to hosts. Offered by [g2]. --- packages/openslug-init/openslug-init-0.10/turnup | 4 +++- packages/openslug-init/openslug-init_0.10.bb | 2 +- 2 files changed, 4 insertions(+), 2 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 # diff --git a/packages/openslug-init/openslug-init_0.10.bb b/packages/openslug-init/openslug-init_0.10.bb index e55d0f05db..537760f8d5 100644 --- a/packages/openslug-init/openslug-init_0.10.bb +++ b/packages/openslug-init/openslug-init_0.10.bb @@ -3,7 +3,7 @@ SECTION = "console/network" LICENSE = "GPL" DEPENDS = "base-files devio" RDEPENDS = "busybox devio" -PR = "r36" +PR = "r37" SRC_URI = "file://linuxrc \ file://boot/flash \ -- cgit v1.2.3