/etc/issue and motd customization
Hey Linux Guru's,
I am building a custom system with a base of Fedora Core 5. I want to show the ip address dynamically via the /etc/issue and /etc/motd.
I have the box setup with DHCP so it will pick up a different ip each time. It's a server so, have not installed X. So i need these two files to dynamically find out the current ip after booting and print it to the screen, just like it does with the kernel version.
I now have the code, as below, but i need to know where to put it so it runs at startup, after dhcp address is picked up but before etc issue is printed to screen???? -Please help
Ok what i have done is put the lines below in this file /etc/init.d/network at the end of the file and it works. It's bit messy so if you have a better suggestion?:
|All times are GMT +1. The time now is 06:26 AM.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.