From 9e2d3a7a24cb8cb1771c46d1ce9efb6376e56a1f Mon Sep 17 00:00:00 2001 From: Yagami-Jiang <119273528+Yagami-Jiang@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:38:45 +0800 Subject: [PATCH] Add files via upload --- .../utils/pddf_fan_control_sensor_refresh.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/pddf_fan_control_sensor_refresh.py diff --git a/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/pddf_fan_control_sensor_refresh.py b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/pddf_fan_control_sensor_refresh.py new file mode 100644 index 000000000000..a5752e59e8ef --- /dev/null +++ b/platform/broadcom/sonic-platform-modules-cel/silverstone-v2/utils/pddf_fan_control_sensor_refresh.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*-# + +# @Time : 2023/7/31 13:15 +# @Mail : yajiang@celestica.com +# @Author : jiang tao + +import sys +import os +sys.path.append(r"/usr/local/bin") +from FanControl import FanControl +import pddf_sensor_list_refresh + + +if os.popen("cat /usr/local/bin/bmc_present").read().strip() == "False": + FanControl.main(sys.argv[1:]) + +if os.popen("cat /usr/local/bin/bmc_present").read().strip() == "True": + pddf_sensor_list_refresh.main()