Metainformationen zur Seite
LBSystem::reboot_required
reboot_required($message);
Sets the state of LoxBerry to require a reboot. This can be used for example in a plugin, where a change of a setting requires a reboot of LoxBerry.The function can directly be used without the LBSystem:: prefix.
The function does not trigger a reboot! The user is informed my a message in the footer bar "Reboot required". Clicking the message opens the power widget and all pending reboot_required messages are displayed.
Parameters
Parameter | Beschreibung |
$message | The message that the power widget should display. If $message is empty, a default message is used. |
Verwendung
require "loxberry_system.php"; reboot_required("The changes of the settings of Squeezelite Plugin require a reboot.");