File tree 1 file changed +2
-2
lines changed
platform/innovium/sonic-platform-modules-wistron/6512-32r/utils
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ bmc_update_dynamic()
244
244
err=1
245
245
fi
246
246
247
- pwr_path=" /sys/bus/i2c/devices/0-00" ${port_map[$1 ]} " /power_mode"
247
+ pwr_path=" /sys/bus/i2c/devices/0-00" ${port_map[$((port + 1)) ]} " /power_mode"
248
248
pwr_mode=$( cat $pwr_path | awk ' {printf $1}' )
249
249
if [ $pwr_mode -ne ${port_pre_mode[$port]} ]; then
250
250
ipmitool raw 0x30 0x25 0x1 0xa0 0x0 93 $pwr_mode
@@ -283,7 +283,7 @@ bmc_update_dynamic()
283
283
else
284
284
err=1
285
285
fi
286
- pwr_path=" /sys/bus/i2c/devices/0-00" ${port_map[$1 ]} " /power_mode"
286
+ pwr_path=" /sys/bus/i2c/devices/0-00" ${port_map[$((port + 1)) ]} " /power_mode"
287
287
pwr_mode=$( cat $pwr_path | awk ' {printf $1}' )
288
288
if [ $pwr_mode -ne ${port_pre_mode[$port]} ]; then
289
289
ipmitool raw 0x30 0x25 0x1 0xa0 0x0 26 $pwr_mode
You can’t perform that action at this time.
0 commit comments