From bf9a77ddd225de15ffd58925900135a6e7a17114 Mon Sep 17 00:00:00 2001 From: marcinlei Date: Sat, 21 Jun 2025 18:19:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor(master=20:=20nicsensor.sh)=E5=B0=86?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=AB=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E7=9A=84type=E7=B1=BB=E5=9E=8B=E7=94=B1defau?= =?UTF-8?q?lt=E5=8F=98=E6=9B=B4=E4=B8=BAauto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nicsensor.sh b/nicsensor.sh index 4d5087f..d623bba 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -59,7 +59,7 @@ fru_offset="0x00 0x00" Support_Sensor_List="emc1413, adc128, ina3221, tmp468, tmp112" Support_Server_List="5280m7, 5468m7, 5688m7, donghu, yichun, qiandaohu" # Which server will use this script -server_type="default" +server_type="auto" # --------------------------------------------------------- # Common Varible (Don't Change) @@ -367,8 +367,8 @@ switch_pca9548_channel(){ pre_exec_hook(){ init_debuglog - # check server_type if is default - if [ "$server_type" = "default" ];then + # check server_type if is auto + if [ "$server_type" = "auto" ];then try_get_server_type fi