add flag version2, to be compatible with the old diskless rootimg(s) before xCAT 2.8

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2013-01-06 05:27:22 +00:00
parent 6f3eab155b
commit d454de2d09

View File

@ -5,13 +5,15 @@ BEGIN {
} else {
server = "/inet/tcp/0/127.0.0.1/400"
}
quit = "no"
print "<xcatrequest>" |& server
print " <command>getpostscript</command>" |& server
if ( ARGV[1] ) {
args = sprintf(" <arg>%s</arg>", ARGV[1])
print args |& server
}
print "</xcatrequest>" |& server
start = 0