This is a CentOS-themed /etc/issue w/ hooks to update IP address and OS release upon ifup/ifdown. My motivation was that I was tired of logging into an otherwise headless box just to find the IP of the system so I can SSH to it.
Note
|
The issue.in file actually contains control characters to do the color
in the text. The easiest way to preserve that is to clone this gist and run
the install.sh script w/ sudo, which will copy the file and set the SELinux
contexts.
|
Screenshot on console:
Tip
|
You may also wanted to change /etc/ssh/sshd_config to point to /etc/motd
instead of /etc/issue , but this is just user preference.
|