[CentOS] How to display the IP on the welcome screen
Patrick Derwael
patrick at derwael.beTue Apr 20 17:49:18 UTC 2010
- Previous message: [CentOS] How to display the IP on the welcome screen
- Next message: [CentOS] How to display the IP on the welcome screen
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is a good step, but how do I get the contents of /etc/issue on the gui ?? Patrick Derwael Rue Hubert Larock, 20 4280 Hannut - Belgique G: +32 (0)479.80.50.79 T : +32 (0)19.63.64.45 try a bash script like the following : #!/bin/sh ADRESS=`ifconfig | grep "inet addr" | awk '{print $2}' | sed s/addr:// | head -n 1` echo "The IP adress is : $ADRESS." > /etc/issue -- Cordialement, / Greetings, Georghy FUSCO _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
- Previous message: [CentOS] How to display the IP on the welcome screen
- Next message: [CentOS] How to display the IP on the welcome screen
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list