From owner-freebsd-current Sun Jan 31 07:06:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08267 for freebsd-current-outgoing; Sun, 31 Jan 1999 07:06:36 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles216.castles.com [208.214.165.216]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08262 for ; Sun, 31 Jan 1999 07:06:34 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id HAA06566; Sun, 31 Jan 1999 07:02:44 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901311502.HAA06566@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Patrick Hartling cc: freebsd-current@FreeBSD.ORG Subject: Re: Reading a text file with BTX In-reply-to: Your message of "Thu, 28 Jan 1999 10:10:20 CST." <199901281610.KAA04600@friley-184-92.res.iastate.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 31 Jan 1999 07:02:43 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message