openjdk-23: use OpenJDK 23 as the boot JDK
[oi-userland.git] / components / library / ConsoleKit / patches / 23-suspend-hibernate-scripts.patch
blob721f3f5dd62bc8c94b064cb4684a9ce3e26119fa
1 From b886a4524b0a987c154f8f181ed54812804660d2 Mon Sep 17 00:00:00 2001
2 From: Eric Koegel <eric.koegel@gmail.com>
3 Date: Tue, 14 Oct 2014 19:01:31 +0300
4 Subject: [PATCH] Add the suspend/hibernate scripts
6 Also add the test-inhibit.c file to the repo, oops.
7 ---
8 src/.gitignore | 1 +
9 src/test-inhibit.c | 163 ++++++++++++++++++++++++++++++++++++++
10 tools/freebsd/Makefile.am | 2 +
11 tools/freebsd/ck-system-hibernate | 12 +++
12 tools/freebsd/ck-system-suspend | 12 +++
13 tools/linux/Makefile.am | 2 +
14 tools/linux/ck-system-hibernate | 12 +++
15 tools/linux/ck-system-suspend | 12 +++
16 tools/openbsd/Makefile.am | 2 +
17 tools/openbsd/ck-system-hibernate | 12 +++
18 tools/openbsd/ck-system-suspend | 12 +++
19 tools/solaris/Makefile.am | 2 +
20 tools/solaris/ck-system-hibernate | 4 +
21 tools/solaris/ck-system-suspend | 4 +
22 14 files changed, 252 insertions(+)
23 create mode 100644 src/test-inhibit.c
24 create mode 100644 tools/freebsd/ck-system-hibernate
25 create mode 100644 tools/freebsd/ck-system-suspend
26 create mode 100644 tools/linux/ck-system-hibernate
27 create mode 100644 tools/linux/ck-system-suspend
28 create mode 100644 tools/openbsd/ck-system-hibernate
29 create mode 100644 tools/openbsd/ck-system-suspend
30 create mode 100644 tools/solaris/ck-system-hibernate
31 create mode 100644 tools/solaris/ck-system-suspend
33 diff --git a/tools/solaris/Makefile.am b/tools/solaris/Makefile.am
34 index f668722..50b9b27 100644
35 --- a/tools/solaris/Makefile.am
36 +++ b/tools/solaris/Makefile.am
37 @@ -10,6 +10,8 @@ scriptdir = $(prefix)/lib/ConsoleKit/scripts
38 script_SCRIPTS = \
39 ck-system-stop \
40 ck-system-restart \
41 + ck-system-suspend \
42 + ck-system-hibernate \
43 $(NULL)
45 EXTRA_DIST = \
46 diff --git a/tools/solaris/ck-system-hibernate b/tools/solaris/ck-system-hibernate
47 new file mode 100644
48 index 0000000..5f31342
49 --- /dev/null
50 +++ b/tools/solaris/ck-system-hibernate
51 @@ -0,0 +1,4 @@
52 +#!/bin/sh
54 +# FIXME: Implement this
55 +exit 1
56 diff --git a/tools/solaris/ck-system-suspend b/tools/solaris/ck-system-suspend
57 new file mode 100644
58 index 0000000..5f31342
59 --- /dev/null
60 +++ b/tools/solaris/ck-system-suspend
61 @@ -0,0 +1,4 @@
62 +#!/bin/sh
64 +# FIXME: Implement this
65 +exit 1