From de0272c3c3c3f83334619de00203fd61a5d9186b Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 5 May 2009 14:16:13 +0000 Subject: [PATCH] added MACADDRESS env to the postscripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index e321f9326..83f870abe 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -237,6 +237,15 @@ sub makescript { } push @scriptd, "export NTYPE\n"; + + my $mactab=xCAT::Table->new("mac", -create =>0); + my $tmp=$mactab->getNodeAttribs($node, ['mac']); + if (defined($tmp) && ($tmp)) { + my $mac=$tmp->{mac}; + push @scriptd, "MACADDRESS='".$mac."'\n"; + push @scriptd, "export MACADDRESS\n"; + } + #get monitoring server and other configuration data for monitoring setup on nodes my %mon_conf=xCAT_monitoring::monitorctrl->getNodeConfData($node); foreach (keys(%mon_conf)) {