[CentOS] print something on console after boot

Mon Dec 8 23:35:13 UTC 2014
Florin Andrei <florin at andrei.myip.org>

CentOS 7

How do I print something on the text-mode console right after the OS has 
finished booting?

I've a virtual instance and I need to know its IP address after it has 
finished booting up, to know where to ssh into it. I've tried adding "ip 
-4 addr > /dev/tty0" to rc.local, but that obviously doesn't work, 
because the login prompt overwrites everything I do.

-- 
Florin Andrei
http://florin.myip.org/