diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/eee-acpi-scripts/files/policy-funcs | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@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 | } | ||