Add 'InfoAtLoginPromt.sh'
This commit is contained in:
4
InfoAtLoginPromt.sh
Normal file
4
InfoAtLoginPromt.sh
Normal 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)"
|
||||
Reference in New Issue
Block a user