aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slugos-init
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2011-01-30 07:43:55 -0600
committerMike Westerhof <mwester@dls.net>2011-01-30 07:43:55 -0600
commit6947f29c84daf167b2d9c58cea10b637d6ff55f7 (patch)
treee4b867e11d8539044d9f6af0dbe1bea6c637fecb /recipes/slugos-init
parent1888f718dba56c61fbf46c777fd628fe0a529664 (diff)
downloadopenembedded-6947f29c84daf167b2d9c58cea10b637d6ff55f7.tar.gz
openembedded-6947f29c84daf167b2d9c58cea10b637d6ff55f7.tar.bz2
openembedded-6947f29c84daf167b2d9c58cea10b637d6ff55f7.zip
SlugOS: sysconf - pass along hostname to DHCP server
This change will result in the appropriate DNS entry being created dynamically, if the DHCP server supports doing so. Signed-off-by: Mike Westerhof <mike@mwester.net>
Diffstat (limited to 'recipes/slugos-init')
-rw-r--r--recipes/slugos-init/files/sysconf2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/slugos-init/files/sysconf b/recipes/slugos-init/files/sysconf
index 8d59d5d6f3..41aa785884 100644
--- a/recipes/slugos-init/files/sysconf
+++ b/recipes/slugos-init/files/sysconf
@@ -182,6 +182,8 @@ sysconf_reload(){
echo "# address, netmask and gateway are ignored for 'dhcp'"
echo "# but required for 'static'"
echo "iface $iface inet $boot"
+ # The following is used by DHCP to register the hostname
+ test -n "$host" && echo " hostname $host"
# The following are ignored for DHCP but are harmless
test -n "$ip" && echo " address $ip"
test -n "$netmask" && echo " netmask $netmask"