From 9b0fba9e3891cefb9a4049a94f85b6b6e076679f Mon Sep 17 00:00:00 2001 From: Marc Hillesheim Date: Fri, 13 Jul 2018 21:30:06 +0200 Subject: [PATCH] [script] autoapp_helper --- .../files/usr/local/bin/autoapp_helper | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stage2/03-crankshaft-base/files/usr/local/bin/autoapp_helper b/stage2/03-crankshaft-base/files/usr/local/bin/autoapp_helper index adce502b..de9a2d7f 100755 --- a/stage2/03-crankshaft-base/files/usr/local/bin/autoapp_helper +++ b/stage2/03-crankshaft-base/files/usr/local/bin/autoapp_helper @@ -61,20 +61,20 @@ fi if [ $1 == "getdisconnect" ]; then remaining=$(systemctl list-timers disconnect.timer | grep left | cut -dl -f1 | awk {'print $5 $6'}) - value="| Stopped" + value="Stopped" if [ ! -z $remaining ]; then - value="| $remaining left" + value="$remaining left" fi - echo "$DISCONNECTION_SCREEN_POWEROFF_SECS Seconds $value" > /tmp/return_value + echo "$DISCONNECTION_SCREEN_POWEROFF_SECS-$value" > /tmp/return_value fi if [ $1 == "getshutdown" ]; then remaining=$(systemctl list-timers shutdown.timer | grep left | cut -dl -f1 | awk {'print $5 $6'}) - value="| Stopped" + value="Stopped" if [ ! -z $remaining ]; then - value="| $remaining left" + value="$remaining left" fi - echo "$DISCONNECTION_POWEROFF_MINS Minutes $value" > /tmp/return_value + echo "$DISCONNECTION_POWEROFF_MINS-$value" > /tmp/return_value fi if [ $1 == "setdisconnect" ] && [ ! -z $2 ]; then