print something on console after boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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/

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux