Revert "rc.mcelog: don't start when unsupported cpu"

This reverts commit 1dd3c10103.
This commit is contained in:
bergware
2023-10-11 21:19:45 +02:00
parent 1dd3c10103
commit 6b9bc3c00f

View File

@@ -73,12 +73,8 @@ mcelog_stop(){
if ! mcelog_running; then
REPLY="Already stopped"
else
if $MCELOG --is-cpu-supported &>/dev/null; then
killall -TERM $MCELOG
if ! mcelog_running; then REPLY="Stopped"; else REPLY="Failed"; fi
else
REPLY="Skipped"
fi
killall -TERM $MCELOG
if ! mcelog_running; then REPLY="Stopped"; else REPLY="Failed"; fi
fi
elif [[ $MCELOG_MODE == trigger && -f $TRIGGER ]]; then
echo > $TRIGGER