blob: fcb867742412c0c456ed8c2aac0d783b2c83d6eb [file] [log] [blame]
#!/bin/sh
# Set mctpi2c link up and assign local address.
localEid=8
# The Sentinel Dome BICs are on the i2c bus0 to bus7.
busnum=0
while [ $busnum -le 7 ]
do
mctp link set mctpi2c${busnum} up
mctp addr add ${localEid} dev mctpi2c${busnum}
busnum=$((busnum+1))
done
# The NICs are on the i2c bus24 to bus27.
busnum=24
while [ $busnum -le 27 ]
do
mctp link set mctpi2c${busnum} up
mctp addr add ${localEid} dev mctpi2c${busnum}
busnum=$((busnum+1))
done