blob: 4dfeb02c5003d06a642866fa7b1c265b61e2d670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
fix for shutdown up from vdr-1.5.x
Joerg Bornkessel <hd_brummy@gentoo.org> 25 Mar 2007
diff -Naur setup-0.3.1.orig/setupmenu.cpp setup-0.3.1/setupmenu.cpp
--- setup-0.3.1.orig/setupmenu.cpp 2007-03-25 22:02:45.214194576 +0200
+++ setup-0.3.1/setupmenu.cpp 2007-03-25 22:09:43.522111889 +0200
@@ -11,6 +11,9 @@
#include <stdlib.h>
#include <vdr/menuitems.h>
+#if APIVERSNUM > 10500
+#include <vdr/shutdown.h>
+#endif
#include <string>
#include "setupmenu.h"
@@ -856,7 +859,11 @@
case kYellow:
if (Interface->Confirm(cRecordControls::Active() ? tr("Recording - restart anyway?") : tr("Really restart?")))
{
+#if APIVERSNUM > 10500
+ ShutdownHandler.RequestEmergencyExit()
+#else
cThread::EmergencyExit(true);
+#endif
return osEnd;
}
return osContinue;
@@ -864,7 +871,11 @@
case kBlue:
if (Interface->Confirm(cRecordControls::Active() ? tr("Recording - restart anyway?") : tr("Really reboot?")))
{
+#if APIVERSNUM > 10500
+ ShutdownHandler.RequestEmergencyExit();
+#else
cThread::EmergencyExit(true);
+#endif
system(_config->GetBootLinux());
}
return osContinue;
|