From 3f253491671a258a48a51b02883cc0ce952103e2 Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 11 May 2018 15:52:32 +0200 Subject: [PATCH] fix --- mobilfetch.sh => mobilfetch_de.sh | 1 - mobilfetch_en.sh | 46 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) rename mobilfetch.sh => mobilfetch_de.sh (97%) create mode 100755 mobilfetch_en.sh diff --git a/mobilfetch.sh b/mobilfetch_de.sh similarity index 97% rename from mobilfetch.sh rename to mobilfetch_de.sh index cf0f7de..76613a1 100755 --- a/mobilfetch.sh +++ b/mobilfetch_de.sh @@ -43,5 +43,4 @@ echo -e "\033[1;33m IPs: \033[0m" `ip addr | grep 'inet' | grep -v i 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 Benutzer: \033[0m" `whoami` -echo -e "\033[1;33m Grafikkarte: \033[0m" `lspci | grep -e VGA -e 3D -m 1` echo -e "\033[1;33m Öffentliche IP: \033[0m" `wget -qO- ipv4.icanhazip.com || echo "Gescheitert"` diff --git a/mobilfetch_en.sh b/mobilfetch_en.sh new file mode 100755 index 0000000..02be5ab --- /dev/null +++ b/mobilfetch_en.sh @@ -0,0 +1,46 @@ +echo -e " . " +echo -e " ;' " +echo -e " 'cl. " +echo -e " .cccl " +echo -e " :cccl: " +echo -e " ,cccccl' " +echo -e " .lllcccco. " +echo -e " .lllllllcll " +echo -e " cllllllllloc " +echo -e " . :oolllllllo; " +echo -e " ;oc..:ooolllllo' " +echo -e " 'ddooo::loooollod. " +echo -e " .ddddddoooooooooooo. " +echo -e " .ddddddddddoooooooooo " +echo -e " .dddddddolllcccccllllol " +echo -e " odddolccccccccccccccccc: " +echo -e " odlcccccccccccccccccccccc; " +echo -e " :cccccccccc,....:cccccccccc, " +echo -e " ;cccccccccc. 'cccccccccc' " +echo -e " ,cccccccccc. 'cccccccccc. " +echo -e " ,cccccccccc; :cccccccccc. " +echo -e " 'ccccccccccc. ,cccccc:;;cc. " +echo -e " .cccccccccccc. .cccccccc:... " +echo -e " .ccccccccccccc. 'ccccccccccc' " +echo -e " .cccccccccc:;'. ..,;cccccccccc, " +echo -e " .ccccccc;'. .,:cccccc: " +echo -e " .cccc:'. .,cccc: " +echo -e " .cc;. .':c: " +echo -e ".,. ., " +echo -e " " + +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 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" +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"`