From 8c9f712a6640d15cdfa1059b1ee49d5459e86a70 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 5 Nov 2020 20:51:18 +0000 Subject: [PATCH] Add 'InfoAtLoginPromt.sh' --- InfoAtLoginPromt.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 InfoAtLoginPromt.sh diff --git a/InfoAtLoginPromt.sh b/InfoAtLoginPromt.sh new file mode 100644 index 0000000..1ed125a --- /dev/null +++ b/InfoAtLoginPromt.sh @@ -0,0 +1,4 @@ +#IP address on host promts (add to /etc/issue) +: \4{} +#IP address on motd (add to .bashrc) +echo "IP: $(ip -o -4 addr list "" | awk '{print $4}' | cut -d/ -f1)" \ No newline at end of file