4 lines
184 B
Bash
4 lines
184 B
Bash
#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)" |