fixed driver information display

This commit is contained in:
Adnan Hodzic 2020-01-03 22:13:28 +01:00
parent 9f20610b26
commit 6c81233fc6
1 changed files with 4 additions and 5 deletions

View File

@ -36,10 +36,6 @@ auto_cpufreq_log_file = "/var/log/auto-cpufreq.log"
# daemon deployment marker
daemon_marker = "/etc/opt/auto-cpufreq"
# driver check
driver = s.getoutput("cpufreqctl --driver")
# deploy cpufreqctl script
def cpufreqctl():
# deploy cpufreqctl script (if missing)
@ -291,6 +287,9 @@ def sysinfo():
dist = " ".join(x for x in fdist)
print("Linux distro: " + dist)
print("Linux kernel: " + pl.release())
# driver check
driver = s.getoutput("cpufreqctl --driver")
print("Driver: " + driver)
# get cpu architecture
@ -430,4 +429,4 @@ def cli(monitor, live, daemon, install, log):
if __name__ == '__main__':
# while True:
cli()
cli()