Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 1999 11:13:34 -0600
From:      Patrick Hartling <mystify@friley-184-92.res.iastate.edu>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Reading a text file with BTX 
Message-ID:  <199901311713.LAA06495@friley-184-92.res.iastate.edu>
In-Reply-To: Message from Mike Smith <mike@smith.net.au>  of "Sun, 31 Jan 1999 07:02:43 PST." <199901311502.HAA06566@dingo.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith <mike@smith.net.au> wrote:

} > Is there a way to view the contents of a text file (specifically,
} > /boot/loader.rc) with BTX?  Now that there are all these nifty new modules,
} > my kernel is a lot smaller and my /boot/loader.rc is a lot longer.  The way
} > I have my /boot/loader.rc setup is such that it unloads everythin
} > automatically loaded if I drop to the BTX prompt instead of autobooting.
} > This is fairly convenient except when I want to boot an alternate kernel but
} > still load all the same modules that I use in my default kernel.  If there
} > isn't such a feature, it would be really nice if there were a 'cat' command
} > or something along those lines so that I could read the contents of
} > /boot/loader.rc and get everything properly reloaded by hand.  Could it be
} > added or could I just make my own somehow?  Thanks a bunch.
} 
} Perhaps try something like:
} 
} @set kernelname=kernel
} @read -t 5 -p "Enter kernel name [kernel] : " kernelname
} @load $kernelname
} @include /boot/modules.default
} -include /boot/modules.$kernelname
} @autoboot 5
} 
} The 'include' commands make it easier to keep your module sets 
} organised, should you want to do that.

That looks great to me.  I was thinking that something like the above would
probably be necessary, but I haven't learned Forth yet.  This should be just
what I need though.  Thanks!

 -Patrick


Patrick L. Hartling			| Research Assistant, ICEMT
mystify@friley-184-92.res.iastate.edu	| Carver Lab - 0095E Black Engineering
http://www.public.iastate.edu/~oz/	| http://www.icemt.iastate.edu/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901311713.LAA06495>