From: xf0r3m Date: Thu, 6 Feb 2025 11:55:58 +0000 (+0000) Subject: Poprawienie bledu w skrypcie motd X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=677636417424a6e4bc92dbde50c95bb123ad9a87;p=backup.git Poprawienie bledu w skrypcie motd --- diff --git a/motd b/motd index 219b6e0..0bb6289 100755 --- a/motd +++ b/motd @@ -22,7 +22,7 @@ for mountPoint in $mountPointsList; do echo -e "\t$(echo $mountPoint | sed 's,\$,,'):\t\t${diskFree}/${diskSize}\t(${diskUsage_perc}%)"; fi done -echo -e " \tIP: $(ip addr show $(sed -n '2p' /proc/net/route | awk '{printf $1}') | grep 'inet\ ' | awk '{printf $2"\n"}') +echo -e " \tIP: $(ip addr show $(sed -n '2p' /proc/net/route | awk '{printf $1}') | grep 'inet\ ' | awk '{printf $2"\n"}')"; echo -e " \tPROCESSES: $(ps -aux | wc -l | awk '{printf $1}')"; if $(uptime | grep -q 'day'); then utime=$(uptime | awk '{printf $3" "$4" "$5}' | sed -e 's/\,$//' -e 's,:,h ,');