From 599699d3828ae1286189df3ac23549eadfdff7a1 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 11 May 2018 15:53:46 +0200 Subject: [PATCH] fix --- mobilfetch_en.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobilfetch_en.sh b/mobilfetch_en.sh index 02be5ab..e779371 100755 --- a/mobilfetch_en.sh +++ b/mobilfetch_en.sh @@ -33,14 +33,14 @@ echo -e "\n"; echo -e "\033[1;33m welcome to $(uname -n) \033[0m"; echo -e "\n"; echo -e "==============================================================================================" -echo -e "\033[1;33m System time: \033[0m" `date | awk '{print $4}'` +echo -e "\033[1;33m System time: \033[0m" `date | awk '{print $4}'` echo -e "\033[1;33m Online time: \033[0m" `uptime | awk '{print $3}'` "Stunden" -echo -e "\033[1;33m Memory Usage: \033[0m" `cat /proc/meminfo|grep 'MemF'| awk '{print $2}'` "kB von" `cat /proc/meminfo|grep 'MemT'| awk '{print $2}'` "kB frei" +echo -e "\033[1;33m Memory Usage: \033[0m" `cat /proc/meminfo|grep 'MemF'| awk '{print $2}'` "kB von" `cat /proc/meminfo|grep 'MemT'| awk '{print $2}'` "kB frei" if [ -f /sys/class/thermal/thermal_zone0/temp ]; then echo -e "\033[1;33m CPU-Temp: \033[0m" `cat /sys/class/thermal/thermal_zone0/temp| awk '{print $1/1000}'` "°C" fi echo -e "\033[1;33m IPs: \033[0m" `ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1` echo -e "\033[1;33m Macs: \033[0m" `ip link | grep ether` echo -e "\033[1;33m Hostname: \033[0m" `hostname` -echo -e "\033[1;33m Users: \033[0m" `whoami` -echo -e "\033[1;33m Public IP: \033[0m" `wget -qO- ipv4.icanhazip.com || echo "Gescheitert"` +echo -e "\033[1;33m Users: \033[0m" `whoami` +echo -e "\033[1;33m Public IP: \033[0m" `wget -qO- ipv4.icanhazip.com || echo "Gescheitert"`