Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagami-Jiang authored Jul 31, 2023
1 parent 1568b95 commit 9e2d3a7
Showing 1 changed file with 19 additions and 0 deletions.
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()

0 comments on commit 9e2d3a7

Please sign in to comment.