initskripts: smt: hide error on cpu's that not support smt at all

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-08-09 08:14:29 +02:00
parent 99f2c69511
commit 559e94bafb
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ etc/rc.d/init.d/functions
etc/rc.d/init.d/leds
etc/rc.d/init.d/networking/red.down/05-remove-dns-forwarders
etc/rc.d/init.d/partresize
etc/rc.d/init.d/smt
etc/rc.d/init.d/sysctl
etc/rc.d/init.d/unbound
etc/sysctl.conf

View 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