aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragaffney <agaffney@kagome.(none)>2008-08-29 07:16:55 -0500
committeragaffney <agaffney@kagome.(none)>2008-08-29 07:16:55 -0500
commit0aa81c3f8e311869563906fd804ec44488e8c3ff (patch)
tree5064f15dadac7e72f17bd48b32689eb6deff3d1c
parentDisabled CONFIG_DEBUG_INFO in x86{,_64} kconfigs (diff)
downloadgenkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.tar.gz
genkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.tar.bz2
genkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.zip
Enable CONFIG_HOSTNAME in all busy-configs
Call 'hostname' with value from DHCP
-rw-r--r--ChangeLog9
-rw-r--r--arch/alpha/busy-config2
-rw-r--r--arch/ia64/busy-config2
-rw-r--r--arch/mips/busy-config2
-rw-r--r--arch/parisc/busy-config2
-rw-r--r--arch/parisc64/busy-config2
-rw-r--r--arch/ppc/busy-config2
-rw-r--r--arch/ppc64/busy-config2
-rw-r--r--arch/sparc/busy-config2
-rw-r--r--arch/sparc64/busy-config2
-rw-r--r--arch/um/busy-config2
-rw-r--r--arch/x86/busy-config2
-rw-r--r--arch/x86_64/busy-config2
-rw-r--r--defaults/busy-config2
-rw-r--r--defaults/udhcpc.scripts3
15 files changed, 23 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d1a630..9124525 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,15 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni
# Distributed under the GPL v2
+ 29 Aug 2008; Andrew Gaffney <agaffney@gentoo.org> arch/alpha/busy-config,
+ arch/ia64/busy-config, arch/mips/busy-config, arch/parisc/busy-config,
+ arch/parisc64/busy-config, arch/ppc/busy-config, arch/ppc64/busy-config,
+ arch/sparc/busy-config, arch/sparc64/busy-config, arch/um/busy-config,
+ arch/x86/busy-config, arch/x86_64/busy-config, defaults/busy-config,
+ defaults/udhcpc.scripts:
+ Enable CONFIG_HOSTNAME in all busy-configs
+ Call 'hostname' with value from DHCP
+
28 Aug 2008; Andrew Gaffney <agaffney@gentoo.org> arch/x86/kernel-config,
arch/x86_64/kernel-config:
Disabled CONFIG_DEBUG_INFO in x86{,_64} kconfigs
diff --git a/arch/alpha/busy-config b/arch/alpha/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/alpha/busy-config
+++ b/arch/alpha/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/ia64/busy-config b/arch/ia64/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/ia64/busy-config
+++ b/arch/ia64/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/mips/busy-config b/arch/mips/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/mips/busy-config
+++ b/arch/mips/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/parisc/busy-config b/arch/parisc/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/parisc/busy-config
+++ b/arch/parisc/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/parisc64/busy-config b/arch/parisc64/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/parisc64/busy-config
+++ b/arch/parisc64/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/ppc/busy-config b/arch/ppc/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/ppc/busy-config
+++ b/arch/ppc/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/ppc64/busy-config b/arch/ppc64/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/ppc64/busy-config
+++ b/arch/ppc64/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/sparc/busy-config b/arch/sparc/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/sparc/busy-config
+++ b/arch/sparc/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/sparc64/busy-config b/arch/sparc64/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/sparc64/busy-config
+++ b/arch/sparc64/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/um/busy-config b/arch/um/busy-config
index da9ff92..6a173ad 100644
--- a/arch/um/busy-config
+++ b/arch/um/busy-config
@@ -273,7 +273,7 @@ CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
# CONFIG_ARPING is not set
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_IFCONFIG is not set
# CONFIG_IFUPDOWN is not set
diff --git a/arch/x86/busy-config b/arch/x86/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/x86/busy-config
+++ b/arch/x86/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/arch/x86_64/busy-config b/arch/x86_64/busy-config
index 917bde8..f9df3e2 100644
--- a/arch/x86_64/busy-config
+++ b/arch/x86_64/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/defaults/busy-config b/defaults/busy-config
index 917bde8..f9df3e2 100644
--- a/defaults/busy-config
+++ b/defaults/busy-config
@@ -543,7 +543,7 @@ CONFIG_FEATURE_LESS_MAXLINES=
# CONFIG_FTPGET is not set
# CONFIG_FTPPUT is not set
# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
-# CONFIG_HOSTNAME is not set
+CONFIG_HOSTNAME=y
# CONFIG_HTTPD is not set
# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set
# CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP is not set
diff --git a/defaults/udhcpc.scripts b/defaults/udhcpc.scripts
index 1890f8a..aea403c 100644
--- a/defaults/udhcpc.scripts
+++ b/defaults/udhcpc.scripts
@@ -5,8 +5,7 @@ case ${1} in
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
[ -n "$rootpath" ] && echo "$rootpath" > /rootpath
- #[ -n "$router" ] && echo "$router" > /router
- #[ -n "$dns" ] && echo "$dns" > /dns
+ [ -n "$hostname" ] && hostname ${hostname}
busybox ifconfig $interface $ip $BROADCAST $NETMASK
if [ -n "${router}" ]