refactor(master : nicsensor.sh)将触发自动识别服务器的type类型由default变更为auto
This commit is contained in:
parent
ccce95117a
commit
bf9a77ddd2
@ -59,7 +59,7 @@ fru_offset="0x00 0x00"
|
|||||||
Support_Sensor_List="emc1413, adc128, ina3221, tmp468, tmp112"
|
Support_Sensor_List="emc1413, adc128, ina3221, tmp468, tmp112"
|
||||||
Support_Server_List="5280m7, 5468m7, 5688m7, donghu, yichun, qiandaohu"
|
Support_Server_List="5280m7, 5468m7, 5688m7, donghu, yichun, qiandaohu"
|
||||||
# Which server will use this script
|
# Which server will use this script
|
||||||
server_type="default"
|
server_type="auto"
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Common Varible (Don't Change)
|
# Common Varible (Don't Change)
|
||||||
@ -367,8 +367,8 @@ switch_pca9548_channel(){
|
|||||||
pre_exec_hook(){
|
pre_exec_hook(){
|
||||||
init_debuglog
|
init_debuglog
|
||||||
|
|
||||||
# check server_type if is default
|
# check server_type if is auto
|
||||||
if [ "$server_type" = "default" ];then
|
if [ "$server_type" = "auto" ];then
|
||||||
try_get_server_type
|
try_get_server_type
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user