From 8fbae2dfa734ed5784f0b9a8030abbecf6efc157 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 11 Feb 2013 19:08:25 +0000 Subject: [PATCH] fix bug 3365 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 1f9a23439..946a364b6 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -293,7 +293,7 @@ if (-f $scriptname) my $PSTMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" $scriptname`; `echo "$PSTMP" > $scriptname`; #remove all the postscripts - my $TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" $scriptname`; + my $TMP=`sed "/# postscripts-start-here/,/# postscripts-end-here/ d" $scriptname`; `echo "$TMP" > $scriptname`; `echo "# postscripts-start-here" >> $scriptname`; #add requested postscripts in @@ -302,9 +302,9 @@ if (-f $scriptname) } # use the run_ps subroutine to run the postscripts - my $TMP1=`sed "/postscripts-start-here/,/postscripts-end-here/ s/\\(.*\\)/run_ps \\1/;s/run_ps *#/#/;s/run_ps *\$//" $scriptname`; + my $TMP1=`sed "/# postscripts-start-here/,/# postscripts-end-here/ s/\\(.*\\)/run_ps \\1/;s/run_ps *#/#/;s/run_ps *\$//" $scriptname`; `echo "$TMP1" > $scriptname`; - my $TMP2=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\\(.*\\)/run_ps \\1/;s/run_ps *#/#/;s/run_ps *\$//" $scriptname`; + my $TMP2=`sed "/# postbootscripts-start-here/,/# postbootscripts-end-here/ s/\\(.*\\)/run_ps \\1/;s/run_ps *#/#/;s/run_ps *\$//" $scriptname`; `echo " # subroutine used to run postscripts run_ps () {