mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user