From 236901361afa876e0a510caf4b146fbd68e80934 Mon Sep 17 00:00:00 2001 From: Beeranco <49772805+Beeranco@users.noreply.github.com> Date: Tue, 15 Aug 2023 17:20:36 +0200 Subject: [PATCH] Update monitor.service Added fix to show only the first network adapter in the case of multiples --- RasPi-Config/monitor.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RasPi-Config/monitor.service b/RasPi-Config/monitor.service index 80a452c..71f7401 100644 --- a/RasPi-Config/monitor.service +++ b/RasPi-Config/monitor.service @@ -101,7 +101,7 @@ fi # Variables # ##-------------## -IP=`hostname -I` +IP=`hostname -I` && IP=$(echo $IP | cut -d ' ' -f 1) DATE=`date "+%d-%m-%y %H:%M"` CPUstat=`(top -bn1 | awk '/Cpu/ { print $2"%"}')` MEMstat=`(free -m | awk '/Mem/{print $3"MB"}')`