From 1e1b13f24ef62d312ffe0513e44b13634beda157 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 4 Nov 2018 01:23:49 +0100 Subject: [PATCH] mute error lock --- home.admin/00mainMenu.sh | 2 +- home.admin/98installRTL.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index a9fc3d3..7a3b241 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -25,7 +25,7 @@ if [ ${isMainChain} -gt 0 ];then fi # check if RTL web interface is installed -runningRTL=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service') +runningRTL=$(sudo ls /etc/systemd/system/RTL.service 2>/dev/null | grep -c 'RTL.service') # get the local network IP to be displayed on the lCD localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') diff --git a/home.admin/98installRTL.sh b/home.admin/98installRTL.sh index 7a50feb..b61bd4a 100644 --- a/home.admin/98installRTL.sh +++ b/home.admin/98installRTL.sh @@ -7,7 +7,7 @@ localip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') echo "*** Check if RTL is installed ***" -isInstalled=$(sudo ls /etc/systemd/system/RTL.service | grep -c 'RTL.service') +isInstalled=$(sudo ls /etc/systemd/system/RTL.service 2>/dev/null | grep -c 'RTL.service') if [ ${isInstalled} -eq 1 ]; then echo "*** Dialog ***"