2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 03:30:33 +00:00

For getipmi script, change the rm to use the -f option

so that we avoid a warning message that the file does not exists.
Add a log label for logger messages
This commit is contained in:
Victor Hu
2016-06-22 14:21:14 -04:00
parent 32743771ff
commit 41b755a413

View File

@@ -1,4 +1,6 @@
#!/bin/bash
log_label="xcat.genesis.getipmi"
allowcred.awk &
CREDPID=$!
if [ -z "$XCATDEST" ]; then
@@ -24,7 +26,7 @@ echo "<xcatrequest>
<callback_port>300</callback_port>
<bmcmac>$BMCMAC</bmcmac>
</xcatrequest>" > /tmp/bmcreq.xml
rm /tmp/ipmicfg.xml
rm -f /tmp/ipmicfg.xml
while [ ! -f /tmp/ipmicfg.xml ] || grep error /tmp/ipmicfg.xml; do
if [ -f /tmp/ipmicfg.xml ]; then
timer=60