From a841ae43636b47fac1905f90f8d28c74c8ff4657 Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Fri, 4 Jul 2025 09:08:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor(master=20:=20nicsensor)=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=A1=A5=E5=85=85usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 "" }