31
Allgemein [ General ] / VDR shutdown wird abgebrochen
« Last post by Schwabe on September 22, 2026, 19:45:42 »Ok, danke. Ist umgesetzt.
# switch to default app if if VDR is not the default app and power button pressed
if [ "$(setting get apps.autostart)" != "VDR" -a "$reason" == "1" ]; then
echo 'Reason 1'
setting call apps.start
exit 1
fi
# do not shutdown if an other app (not VDR) is running and not vdr.mayShutdown
if [ "$(setting get apps.app.title)" != "VDR" -a "$(setting get vdr.mayShutdown)" != "true" ]; then
echo 'Reason 2'
exit 1
fi
# switch to default app if if VDR is not the default app and power button pressed
if [ "$(setting get apps.autostart)" != "VDR" -a "$reason" == "1" ] echo 'Reason 1'; then
setting call apps.start
exit 1
fi
# do not shutdown if an other app (not VDR) is running and not vdr.mayShutdown
if [ "$(setting get apps.app.title)" != "VDR" -a "$(setting get vdr.mayShutdown)" != "true" ] echo 'Reason 2'; then
exit 1
fi