Well Sandeep,

I know what you are saying,

I want to know whether this ip adress is stored anywhere in /proc system, so
that I can at regular intervals poll this file for changed info and save the
info in flash.

because the embedded system on which we are working and (further developing)
is based on RH 7.2 but does not have any directory structure as
/etc/sysconfig. and I have to store the IP address into flash, so that when
the system comes up it takes up that IP address.

And I modify code of ifconfig so that whenever it is setting an ip address
it puts that ip address to the file I specify.

Kapil
----- Original Message ----- 
From: "Sandip Bhattacharya" <[EMAIL PROTECTED]>
To: "The Linux-Delhi mailing list" <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 12:54 PM
Subject: Re: [ilugd] File from storing interface IP adrress


> When you do use ifconfig from the command line, the IP address is only
> kept internally in the kernel, and is lost when you reboot.
>
> Instead of using ifconfig, modify the IP address in the file that you
> mentioned, and run "service network restart" as root. Now even if you
> reboot, the IP address is going to "stay".
>
> - Sandip
>



_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to