summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs')
-rw-r--r--meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs
new file mode 100644
index 0000000..fd099df
--- /dev/null
+++ b/meta/recipes-bsp/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}