diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs')
-rw-r--r-- | meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs | 8 |
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 0000000000..fd099df0d8 --- /dev/null +++ b/meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs | |||
@@ -0,0 +1,8 @@ | |||
1 | CheckPolicy() { | ||
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 | } | ||