summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/poweroff
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/scripts/poweroff')
-rwxr-xr-xclient/shared/scripts/poweroff8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/shared/scripts/poweroff b/client/shared/scripts/poweroff
index 7297cad3..563845b3 100755
--- a/client/shared/scripts/poweroff
+++ b/client/shared/scripts/poweroff
@@ -30,12 +30,10 @@ ethtool -s $DEVICE wol g 2>/dev/null
BUSYBOX=$(which busyboxOLD)
BUSYBOX=${BUSYBOX:-"busybox"}
-# Retardo para dar lugar al registro en cola de acciones.
-sleep 5
-# Parar Browser para evitar "cuelgues".
-[ "$ogstatus" == "offline" ] || pkill browser
+# Parar agente y Browser.
+ogagent stop &>/dev/null
+pkill -9 browser
-sendStatusToServer "off"
# Apagar.
$BUSYBOX poweroff