diff --git a/nicsensor.sh b/nicsensor.sh index c3faf5c..3dbbfc4 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -163,6 +163,7 @@ print_usage(){ echo " - [slot] : 0 1 2 3 4 5 ..." echo " - [slave] : chip slave address , please provide 7 bit address" echo " - [command] : The i2c command which will set to the chip" + echo " 3) E.G. : ./nicsensor.sh pcie1 chip 0x10 'i2ctransfer -y 12 w1@0x10 0x00 r2'" echo "" echo " Function 4 - FRU Read and Wirte" echo " 1) Command Format : ./nicsensor.sh [slot] fru [slave] [option] [frudata]" @@ -171,6 +172,9 @@ print_usage(){ echo " - [slave] : chip slave address , please provide 7 bit address" echo " - [option] : read/write, default to read" echo " - [frudata] : fru bin file which will write to eeprom, only for write option" + echo " 3) E.G. : ./nicsensor.sh pcie0 fru 0x57" + echo " : ./nicsensor.sh pcie0 fru 0x57 read" + echo " : ./nicsensor.sh pcie0 fru 0x57 write /tmp/fru.bin" echo "" }