mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
neutrino: add "need_reboot" feature
Origin commit data
------------------
Commit: f6253de913
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-14 (Tue, 14 Nov 2017)
Origin message was:
------------------
- neutrino: add "need_reboot" feature
This commit is contained in:
@@ -4661,6 +4661,12 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
else if(actionKey=="shutdown") {
|
||||
ExitRun(1);
|
||||
}
|
||||
else if(actionKey=="need_reboot")
|
||||
{
|
||||
int reboot_now = ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_MESSAGEBOX_NEED_REBOOT, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_SETTINGS);
|
||||
if (reboot_now == CMsgBox::mbrYes)
|
||||
CNeutrinoApp::getInstance()->exec(NULL, "reboot");
|
||||
}
|
||||
else if(actionKey=="reboot")
|
||||
{
|
||||
FILE *f = fopen("/tmp/.reboot", "w");
|
||||
|
Reference in New Issue
Block a user