]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/smt
smt: Fix check to detect if a system is running virtually
[ipfire-2.x.git] / src / initscripts / system / smt
index bfa7d57b3e925f46053bbb6b63a90c5bec77b983..274ec4bbaf413dd74e09e1ad1af6310cee1026ae 100644 (file)
@@ -21,7 +21,7 @@ case "${1}" in
                fi 2>/dev/null
 
                # Do not disable SMT inside virtual machines
-               if [ -d "/sys/hypervisor" ]; then
+               if running_on_hypervisor; then
                        exit 0
                fi