From fe338546775df875fbe2daa4994250112827083e Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Fri, 26 Dec 2025 16:21:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(master=20:=20nicsensor)=20update=20to=201.8?= =?UTF-8?q?.7=20=E5=B0=86get/set=E5=8A=9F=E8=83=BD=E4=B8=AD=E7=9A=84detect?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8F=98=E6=9B=B4=E4=B8=BA=20n=5Fdetect=20,?= =?UTF-8?q?=20=E4=BE=BF=E4=BA=8E=E7=90=86=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nicsensor.sh b/nicsensor.sh index 77e87b7..a7bf982 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -1,5 +1,5 @@ #!/bin/sh -SCRIPT_VERSION="1.8.6" +SCRIPT_VERSION="1.8.7" # --------------------------------------------------------- # Project Feature Varible (Change if need) # --------------------------------------------------------- @@ -194,11 +194,11 @@ print_usage(){ echo " Function 5 - Settings" echo " 1) Command Format : ./nicsensor.sh [get/set] [property] [value]" echo " 2) Option Detail" - echo " - [property] : debug, detect, server" + echo " - [property] : debug, n_detect, server" echo " - [value] : property's value" echo " 3) E.G. : ./nicsensor.sh set server 5280m7" echo " : ./nicsensor.sh set debug 1" - echo " : ./nicsensor.sh set detect 1" + echo " : ./nicsensor.sh set n_detect 1" echo "" search_plugin_help } @@ -275,7 +275,7 @@ get_set_properties(){ elif [ "$Param2" = "debug" ];then target_file="/tmp/ns_debugmode" default_data=$DEBUG_MODE - elif [ "$Param2" = "detect" ];then + elif [ "$Param2" = "n_detect" ];then target_file="/tmp/ns_disabledetect" default_data=$DISABLE_DETECT else