From b06249cbd07c0697a1bf47225b201b1b7684a973 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 9 Jan 2019 22:52:55 +0100 Subject: [PATCH] save space --- home.admin/00infoLCD.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 264839a..ca3a67f 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -165,8 +165,9 @@ while : else # when takes longer display error uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')" - if [ ${uptimeSeconds} -gt 120 ]; then - l2="---> ${clienterror}\n" + if [ ${uptimeSeconds} -gt 30 ]; then + clienterror=$(echo "${clienterror/error*:/}") + l2="---> ${clienterror}\n" boxwidth=70 fi fi