mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-06 10:18:20 +00:00
Adapt channel number dynamically
SR635/SR655 lan channel identity may swap. Use the oem command to determine the correct port.
This commit is contained in:
@@ -231,10 +231,10 @@ elif [ "$IPMIMFG" = "19046" -a "$XPROD" = "1287" ]; then
|
||||
if [ "$BMCPORT" = 0 ]; then
|
||||
ipmitool raw 0x32 0x71 0 1 2
|
||||
ipmitool raw 0x32 0x71 0 0 3
|
||||
LANCHAN=1
|
||||
LANCHAN=$(ipmitool raw 0x32 0x72 4 0 0|sed -e 's/^ 0//')
|
||||
else
|
||||
ipmitool raw 0x32 0x71 0 0 0
|
||||
LANCHAN=8
|
||||
LANCHAN=$(ipmitool raw 0x32 0x72 4 1 0|sed -e 's/^ 0//')
|
||||
fi
|
||||
ipmitool raw 0x3c 0x70 0 1
|
||||
#USBSTATE=$(ipmitool raw 0x32 0xab)
|
||||
|
Reference in New Issue
Block a user