2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Update bmcsetup

This commit is contained in:
adorsey-NOAA 2020-04-07 12:45:51 -04:00 committed by GitHub
parent cd4e266c7e
commit e5c6039855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,15 +433,16 @@ for user in $BMCUS; do
if [ -z "$USERSLOT" ]; then
USERSLOT=$((`ipmitool raw 6 0x44 1 1|awk '{print $3}'` + 1))
fi
if [ "$USERSLOT" == 0 -o -z "$LOCKEDUSERS" ]; then USERSLOT=2; fi
# automatically find first unlocked user slot
for slot in {1..16}; do
USERLOCKED=`ipmitool channel getaccess $LANCHAN $slot | grep Fixed | awk '{print $4}'`
if [ "$USERLOCKED" == "No" ]; then
USERSLOT=$slot
break
fi
done
if [ "$USERSLOT" == 0 -o -z "$LOCKEDUSERS" ]; then
# automatically find first unlocked user slot
for slot in {1..16}; do
USERLOCKED=`ipmitool channel getaccess $LANCHAN $slot | grep Fixed | awk '{print $4}'`
if [ "$USERLOCKED" == "No" ]; then
USERSLOT=$slot
break
fi
done
fi
if [ "$ISITE" = 1 ]; then
allowcred.awk &
CREDPID=$!