[CentOS] How to display the IP on the welcome screen

Tue Apr 20 17:49:18 UTC 2010
Patrick Derwael <patrick at derwael.be>

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