Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
stefanberger
/
openbmc
/
eb8dc40360f0cfef56fb6947cc817a547d6d9bc6
/
.
/
poky
/
meta
/
recipes-bsp
/
eee-acpi-scripts
/
files
/
policy-funcs
blob: fd099df0d804c81edfba808fc82d5a94aee91c80 [
file
] [
log
] [
blame
]
CheckPolicy
()
{
if
pidof gnome
-
power
-
manager kpowersave
>
/dev/
null
||
(
pidof dcopserver
>
/dev/
null
&&
test
-
x
/
usr
/
bin
/
dcop
&&
/usr/
bin
/
dcop kded kded loadedModules
|
grep
-
q klaptopdaemon
)
;
then
echo
0
;
else
echo
1
;
fi
}