Compare commits

..

No commits in common. "71a40e88f6c226c3b920bbc05f823dad8aef2952" and "988d217008048d0dd08fcc93ea78759ee71fbc28" have entirely different histories.

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
SCRIPT_VERSION="1.8.8" SCRIPT_VERSION="1.8.6"
# --------------------------------------------------------- # ---------------------------------------------------------
# Project Feature Varible (Change if need) # Project Feature Varible (Change if need)
# --------------------------------------------------------- # ---------------------------------------------------------
@ -194,11 +194,11 @@ print_usage(){
echo " Function 5 - Settings" echo " Function 5 - Settings"
echo " 1) Command Format : ./nicsensor.sh [get/set] [property] [value]" echo " 1) Command Format : ./nicsensor.sh [get/set] [property] [value]"
echo " 2) Option Detail" echo " 2) Option Detail"
echo " - [property] : debug, n_detect, server, fru_size" echo " - [property] : debug, detect, server"
echo " - [value] : property's value" echo " - [value] : property's value"
echo " 3) E.G. : ./nicsensor.sh set server 5280m7" echo " 3) E.G. : ./nicsensor.sh set server 5280m7"
echo " : ./nicsensor.sh set debug 1" echo " : ./nicsensor.sh set debug 1"
echo " : ./nicsensor.sh set n_detect 1" echo " : ./nicsensor.sh set detect 1"
echo "" echo ""
search_plugin_help search_plugin_help
} }
@ -275,12 +275,9 @@ get_set_properties(){
elif [ "$Param2" = "debug" ];then elif [ "$Param2" = "debug" ];then
target_file="/tmp/ns_debugmode" target_file="/tmp/ns_debugmode"
default_data=$DEBUG_MODE default_data=$DEBUG_MODE
elif [ "$Param2" = "n_detect" ];then elif [ "$Param2" = "detect" ];then
target_file="/tmp/ns_disabledetect" target_file="/tmp/ns_disabledetect"
default_data=$DISABLE_DETECT default_data=$DISABLE_DETECT
elif [ "$Param2" = "fru_size" ];then
target_file="/tmp/ns_frusize"
default_data=$fru_size
else else
fmt_print "console" $ERROR "Invalid Property : $Param2" fmt_print "console" $ERROR "Invalid Property : $Param2"
exit 1 exit 1
@ -313,10 +310,6 @@ load_properties_from_cache(){
if [ -e "/tmp/ns_disabledetect" ];then if [ -e "/tmp/ns_disabledetect" ];then
DISABLE_DETECT=`cat /tmp/ns_disabledetect` DISABLE_DETECT=`cat /tmp/ns_disabledetect`
fi fi
if [ -e "/tmp/ns_frusize" ];then
fru_size=`cat /tmp/ns_frusize`
fi
} }
# According to boardid, parse server_type # According to boardid, parse server_type