-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1568b95
commit 9e2d3a7
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...oadcom/sonic-platform-modules-cel/silverstone-v2/utils/pddf_fan_control_sensor_refresh.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |