boot sequence and tty's
pacneil at linuxgeek.net
Tue Mar 14 12:02:05 PST 2000
If this is a laptop, those facilities already exist, without resorting to
a custom script. There is a script called scheme which allows you do do
exactly what you describe. If it's not a laptop, take a look at the PCMCIA
Howto and look at the descriptions. It's in section 5.2 of the
Hope this helps.
On Tue, 14 Mar 2000, Michael B. Rash wrote:
MBR>I just started a new job that has me working in two different
MBR>locations; each with a different network setup (i.e. my ip, default gw,
MBR>nameservers, printers, etc...). I wrote a perl script to edit the
MBR>appropriate files (/etc/resolve.conf,
MBR>/etc/sysconfig/network-scripts/ifcfg-eth0, etc...) after prompting me to
MBR>enter my current location. Now, I would like to put this into my rc.local
MBR>to run it that way, but it seems that I have a confusion about what
MBR>exactly happens during the boot sequence. I guess that a terminal is
MBR>not allocated during the boot sequence since reading from and writing to
MBR>STDOUT does not seem to be possible? I am guessing that this is so since
MBR>calling my perl script (which essentially prints "Enter your location" to
MBR>STDOUT) does not display anything back to the screen upon calling rc.local
MBR>in the boot sequence.
MBR>What about passing a customized option to the kernel or is this a _really_
MBR>dumb idea? Options like "root=/blah", or typing in the name of one of my
MBR>compiled kernels come to mind. How about "location=blah" and passing this
MBR>to my perl script? Is there any way to do this?
MBR> list archives http://www.ultraviolet.org
MBR> To unsubscribe, send a message to the address shown in the list-unsubscribe
MBR> header of this message.
Neil Schneider pacneil at linuxgeek.net
"Treat passwords like underwear... Never let friends borrow them
and never leave them lying about. And as anybody's mother would
say, change them often."
More information about the KPLUG-List