summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/show_sensors.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/op_mode/show_sensors.py b/src/op_mode/show_sensors.py
index 54a0f52c9..b7ff05178 100755
--- a/src/op_mode/show_sensors.py
+++ b/src/op_mode/show_sensors.py
@@ -18,16 +18,9 @@
import re
import sys
-from vyos.utils.file import read_file
from vyos.utils.process import popen
from vyos.utils.process import DEVNULL
-cpu_info = read_file('/proc/cpuinfo')
-# Linux always adds "hypervisor" to CPU flags
-if 'hypervisor' in cpu_info:
- print('VyOS running under hypervisor, no sensors available!')
- sys.exit(1)
-
output, retcode = popen("sensors --no-adapter", stderr=DEVNULL)
if retcode == 0:
print (output)