summaryrefslogtreecommitdiffstats
path: root/meta/packages/eee-acpi-scripts/files/policy-funcs
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/eee-acpi-scripts/files/policy-funcs')
-rw-r--r--meta/packages/eee-acpi-scripts/files/policy-funcs8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/packages/eee-acpi-scripts/files/policy-funcs b/meta/packages/eee-acpi-scripts/files/policy-funcs
new file mode 100644
index 0000000000..fd099df0d8
--- /dev/null
+++ b/meta/packages/eee-acpi-scripts/files/policy-funcs
@@ -0,0 +1,8 @@
1CheckPolicy() {
2 if pidof gnome-power-manager kpowersave > /dev/null ||
3 (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) ; then
4 echo 0;
5 else
6 echo 1;
7 fi
8}