diff options
author | agaffney <agaffney@kagome.(none)> | 2008-08-29 07:16:55 -0500 |
---|---|---|
committer | agaffney <agaffney@kagome.(none)> | 2008-08-29 07:16:55 -0500 |
commit | 0aa81c3f8e311869563906fd804ec44488e8c3ff (patch) | |
tree | 5064f15dadac7e72f17bd48b32689eb6deff3d1c /defaults | |
parent | Disabled CONFIG_DEBUG_INFO in x86{,_64} kconfigs (diff) | |
download | genkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.tar.gz genkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.tar.bz2 genkernel-0aa81c3f8e311869563906fd804ec44488e8c3ff.zip |
Enable CONFIG_HOSTNAME in all busy-configs
Call 'hostname' with value from DHCP
Diffstat (limited to 'defaults')
-rw-r--r-- | defaults/busy-config | 2 | ||||
-rw-r--r-- | defaults/udhcpc.scripts | 3 |
2 files changed, 2 insertions, 3 deletions
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}" ] |