]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/smt
initskripts: smt: hide error on cpu's that not support smt at all
[ipfire-2.x.git] / src / initscripts / system / smt
index f83776c1a8e3e9926a73b2f256ec554dc5dc69a8..cc4128b2d90f45b5b8b31e10362962daa7bceec1 100644 (file)
@@ -18,7 +18,7 @@ case "${1}" in
                # Nothing to do when SMT is not enabled or not supported anyways
                if [ "$(</sys/devices/system/cpu/smt/control)" != "on" ]; then
                        exit 0
-               fi
+               fi 2>/dev/null
 
                # Disable SMT when the processor is vulnerable to Foreshadow or Fallout/ZombieLoad/RIDL
                for vuln in l1tf mds; do