]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
initskripts: smt: hide error on cpu's that not support smt at all
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 9 Aug 2019 06:14:29 +0000 (08:14 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 9 Aug 2019 06:14:29 +0000 (08:14 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/135/filelists/files
src/initscripts/system/smt

index 4c5fdce6cc9c459e79d6d5547c3b7ebd8fe7129a..c6c87ba18e8d65a964230ec4baf0a0f94b52e18e 100644 (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
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