Re: How to display the IP on the welcome screen

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



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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
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