]> gitweb.morketsmerke.org Git - backup.git/commitdiff
Dodanie wyswietlania adresu IP do skryptu 'motd'
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 6 Feb 2025 10:57:01 +0000 (10:57 +0000)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 6 Feb 2025 10:57:01 +0000 (10:57 +0000)
motd

diff --git a/motd b/motd
index ad2eb7b4b03d4ad915ba11d82a4212821b2cdac5..219b6e05098781449ee7bd2f6931e2d42f330fa4 100755 (executable)
--- a/motd
+++ b/motd
@@ -3,7 +3,7 @@
 # Deps: figlet lolcat
 # Deps GH: https://github.com/xero/figlet-fonts -> /usr/share/figlet-fonts;
 
-echo "hostname" | /usr/bin/figlet -c -f /usr/share/figlet-fonts/3d.flf | lolcat
+echo "hostname" | /usr/bin/figlet | lolcat
 echo;
 echo "Today is: $(date)";
 echo;
@@ -22,6 +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 "  \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 ,');
@@ -36,6 +37,6 @@ else
 fi
 echo -e " \t$(uptime | grep -o "load.*$" | tr [a-z] [A-Z])";
 echo;
-echo -e "morketsmerke.org @ 2024 https://github.com/xf0r3m/immudex";
+echo -e "ZS, CKU w GRONOWIE @ 2025 https://zsgronowo.edu.pl";
 echo;
 echo "====================================================================";