mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-15 10:50:28 +00:00
bmcsetup: remove &> bash-ism
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user