2010-02-03 15:12:28     Boot configuration and scripts

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-03 15:12:28     Boot configuration and scripts

Alexandre Morris (CANADA)

Message: 85559   

 

Hi, I am new at programming under uClinux and under Linux as well.

 

I am attempting to modify the file /etc/rc using vi in order to add some scripts.

 

For example, I've tried to add the following line: ifconfig eth0 192.168.1.200 netmask 255.255.255.0. I then save and exit vi. If I type cat etc/rc, the file contains my new line, but if I reboot, the /etc/rc does not contain my new line anymore.

 

I wonder if there is any other way to modify this file.

 

 

 

Thanks

 

Alexandre

QuoteReplyEditDelete

 

 

2010-02-03 15:17:41     Re: Boot configuration and scripts

Mike Frysinger (UNITED STATES)

Message: 85560   

 

you shouldnt modify files under romfs/.  they'll automatically be clobbered next time you run `make`.  if you want to modify things under there, you have to use the source file from the dist.

 

all ADI boards get their /etc/rc file from vendors/AnalogDevices/common/rc.  if you're using a different vendor, you'll have to figure out how that vendor/board does things.

QuoteReplyEditDelete

 

 

2010-02-03 15:26:18     Re: Boot configuration and scripts

Alexandre Morris (CANADA)

Message: 85561   

 

All right, thanks for the fast answer.

 

Alex

QuoteReplyEditDelete

Attachments

    Outcomes