summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorccsmart <ccsmart@smartpal.de>2005-07-16 19:39:04 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-16 19:39:04 +0000
commit53aaeb6d952beea5a2df399321b286c6a72b025c (patch)
tree64d5439a18668a330d98a5ac4b7ecb6771c4d2a4 /packages
parente79aeff420bed2d70be6ba2075343f3d97db3eb0 (diff)
Adding own hostname to hosts. Offered by [g2].
Diffstat (limited to 'packages')
-rw-r--r--packages/openslug-init/openslug-init-0.10/turnup4
-rw-r--r--packages/openslug-init/openslug-init_0.10.bb2
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 \