From 753d6db75e5c8100c46b8bd77ff0e06b87958e90 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 27 May 2008 20:56:07 +0000 Subject: [PATCH] -Have dhcp server send host-name on offers git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/dhcp.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm index da97ce463..f6a6ced3e 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/dhcp.pm @@ -240,8 +240,12 @@ sub addnode print $omshell "set ip-address = $ip\n"; if ($lstatements) { - print $omshell "set statements = \"$lstatements\"\n"; + $lstatements = 'send host-name \"'.$node.'\";'.$lstatements; + + } else { + $lstatements = 'send host-name \"'.$node.'\";'; } + print $omshell "set statements = \"$lstatements\"\n"; } print $omshell "create\n";