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:
@@ -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
|
||||
|
Reference in New Issue
Block a user