From df6a9049d92e8587802a244abeaf23f6831cf90a Mon Sep 17 00:00:00 2001 From: vallard Date: Tue, 23 Nov 2010 18:11:26 +0000 Subject: [PATCH] added post boot scripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8244 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 5da8cfbf8..9dc0fbb12 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -645,8 +645,23 @@ sub makescript } } + # get postbootscripts for image + my $ips = $et2->{'postbootscripts'}; + if ($ips) + { + foreach my $n (split(/,/, $ips)) + { + if (!exists($postboot_hash{$n})) + { + $postboot_hash{$n} = 1; + push @scriptd, $n . "\n"; + } + } + } + + # get postscripts - my $ps = $et1->{'postbootscripts'}; + $ps = $et1->{'postbootscripts'}; if ($ps) { foreach my $n (split(/,/, $ps))