mirror of
https://github.com/unraid/webgui.git
synced 2026-04-28 13:59:21 -05:00
rc.mcelog: don't start when unsupported cpu
This commit is contained in:
+7
-4
@@ -49,10 +49,13 @@ mcelog_start(){
|
||||
if mcelog_running; then
|
||||
REPLY="Already started"
|
||||
else
|
||||
# ignorance is bliss I guess
|
||||
$MCELOG --is-cpu-supported &>/dev/null
|
||||
$MCELOG --daemon $MCELOG_OPTIONS
|
||||
if mcelog_running; then REPLY="Started"; else REPLY="Failed"; fi
|
||||
# check cpu support (Intel)
|
||||
if $MCELOG --is-cpu-supported &>/dev/null; then
|
||||
$MCELOG --daemon $MCELOG_OPTIONS
|
||||
if mcelog_running; then REPLY="Started"; else REPLY="Failed"; fi
|
||||
else
|
||||
REPLY="Skipped"
|
||||
fi
|
||||
fi
|
||||
elif [[ -f $TRIGGER ]]; then
|
||||
echo $MCELOG > $TRIGGER
|
||||
|
||||
Reference in New Issue
Block a user