[CentOS] print something on console after boot

Florin Andrei

florin at andrei.myip.org
Mon Dec 8 23:35:13 UTC 2014


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/




More information about the CentOS mailing list