Re: how to pass parms to rc.custom?
"John Lumby" <[email protected]> Wed, 22 Dec 2004 13:36:24 -0500
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Message-ID | <[email protected]> |
Thanks Tom. I tried modifying the settings.s on the diskette and although it worked, something strange happened: I changed one line and added three: changed NM=jelsrtbt to NM=lumbyrnt added IPADDR=192.168.0.2 NETMASK=255.255.255.0 GATEWAY=192.168.0.2 Those were the only changes. On booting, the last three (I *think* three, maybe two or four, but certainly >1) lines of the tomsrtbt logo (the two penguins) were not displayed, and instead of seeing the (15 seconds) i got the boot prompt stuck halfway along one line. It seems as though, somewhere, this diskette "knows" the size of settings.s and when I add some more lines in the middle, some bytes at the end are droppped. Does that sound at all likely? Or do I need to see the optician? (I will try it again some time but don't have a mc to boot it on right now ...) John ----Original Message Follows---- From: Tom Oehser <[email protected]> To: John Lumby <[email protected]> CC: [email protected] Subject: Re: [tomsrtbt] how to pass parms to rc.custom? Date: Tue, 21 Dec 2004 13:12:25 -0500 (EST) The intention was that most users would be customizing settings.s and rc.custom.gz without rebuilding. If you are doing a rebuild anyway, I think you can modify 1/settings.s, and settings there will be kept. -Tom On Tue, 21 Dec 2004, John Lumby wrote: > Date: Tue, 21 Dec 2004 11:56:35 -0500 > From: John Lumby <[email protected]> > To: [email protected] > Subject: [tomsrtbt] how to pass parms to rc.custom? > > In the supplied rc.custom.gz, there is this (at line 4): > > if [ "$IPADDR" != "" ] > then ... do stuff > fi > > How would I set IPADDR to something such that the stuff is done? Is it > simply a matter of setting it in 1/settings.s? That's what I think I > deduce from looking at > 2/etc/rc.S > I have been a bit unwilling to put "permanent" settings in 1/settings.s > since I notice that buildit completely rewrites it (1/settings.s) every time > I buildit (why does it do that? doesn't trust me? I guess that's > wise ...) I suppose I can edit the settings.s on the diskette, which is > the way I am supposed to do it according to the FAQ. But I wonder if > there's some place on the build directory where I can safely store settings > like this and have them included in every diskette I build without having to > think about it. > > John > >