2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-15 19:01:44 +00:00

bmcsetup: remove &> bash-ism

This commit is contained in:
Kilian Cavalotti
2016-06-16 15:18:06 -07:00
parent 195f80ee6e
commit 39e8480ade

View File

@ -229,11 +229,11 @@ elif [ "$IPMIMFG" == "674" ]; then # DELL
BMCPORT=`grep bmcport /tmp/ipmicfg.xml |awk -F\> '{print $2}'|awk -F\< '{print $1}'`
logger -s -t $log_label -p local4.info "BMCPORT is $BMCPORT"
if [ "$BMCPORT" == "0" ]; then # shared with all loms
ipmitool delloem lan set shared &>/dev/null
ipmitool delloem lan set shared with lom1 &>/dev/null
ipmitool delloem lan set shared with failover all loms &>dev/null
ipmitool delloem lan set shared >/dev/null 2>&1
ipmitool delloem lan set shared with lom1 >/dev/null 2>&1
ipmitool delloem lan set shared with failover all loms >dev/null 2>&1
elif [ "$BMCPORT" == "1" ]; then # dedicated
ipmitool delloem lan set dedicated &>/dev/null
ipmitool delloem lan set dedicated >/dev/null 2>&1
fi
fi