summaryrefslogtreecommitdiffstats
path: root/client/shared/bin/poweroffconf
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/bin/poweroffconf')
-rwxr-xr-xclient/shared/bin/poweroffconf3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/shared/bin/poweroffconf b/client/shared/bin/poweroffconf
index de6726b4..c8cdf39c 100755
--- a/client/shared/bin/poweroffconf
+++ b/client/shared/bin/poweroffconf
@@ -21,6 +21,7 @@
OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} # Instalación de OpenGnsys
OGETC=${OGETC:-$OPENGNSYS/etc} # Configuración de OpenGnsys
POWEROFFCONF=/etc/poweroff.conf # Configuración del script
+OGCLIENT=ogclient
# Error si no existe el fichero de configuración de ahorro de energía.
if [ ! -f $POWEROFFCONF ]; then
@@ -62,7 +63,7 @@ case $# in
esac
# Comprobar si hay algún script en ejecución (verificando compatibilidad de "pgrep").
[ -n "$(pgrep -fa 2>&1 | grep "invalid")" ] && PGREP="pgrep -fl" || PGREP="pgrep -fa"
-if [ -n "$($PGREP $OPENGNSYS | egrep -v "$OGETC|$0")" ]; then
+if [ -n "$($PGREP $OPENGNSYS | egrep -v "$OGETC|$0|$OGCLIENT")" ]; then
# Eliminar tiempo de inicio de espera, si se está ejecutando operación.
perl -pi -e 's/POWEROFFTIME=.*$/POWEROFFTIME=/' $POWEROFFCONF
else