Archived
1
0

Add 'InfoAtLoginPromt.sh'

This commit is contained in:
2020-11-05 20:51:18 +00:00
parent fc715574cd
commit 8c9f712a66

4
InfoAtLoginPromt.sh Normal file
View File

@@ -0,0 +1,4 @@
#IP address on host promts (add to /etc/issue)
<ifName>: \4{<ifName>}
#IP address on motd (add to .bashrc)
echo "IP: $(ip -o -4 addr list "<IFNAME>" | awk '{print $4}' | cut -d/ -f1)"