From: agaffney Date: Fri, 29 Aug 2008 12:16:55 +0000 (-0500) Subject: Enable CONFIG_HOSTNAME in all busy-configs X-Git-Tag: v3.4.10.902~47^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0aa81c3f8e311869563906fd804ec44488e8c3ff;p=genkernel.git Enable CONFIG_HOSTNAME in all busy-configs Call 'hostname' with value from DHCP --- 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 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 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}" ]