Date: Fri, 29 Jan 1999 03:46:29 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: Patrick Hartling <mystify@friley-184-92.res.iastate.edu> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Reading a text file with BTX Message-ID: <36B0B085.114163@newsguy.com> References: <199901281610.KAA04600@friley-184-92.res.iastate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Hartling 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. You might be refering to the loader prompt, not the btx prompt. If you type something as soon as the first "|" is shown, that's btx. If you wait a little, or enter /boot/loader, then you get loader. Specifically, if it has processed loader.rc, then you are inside loader, not btx. Loader has a command called "autoboot", which runs by default with 10 seconds wait. This one shows a countdown of seconds. If you interrupt here, you are in loader. Now, I don't know about btx, but here is what is in for you with loader... Conditional loading is possible, though Mike committed it to RELENG_3 instead of -current, and has not corrected that yet. bin/9662, in case you want. You can put that code inside /boot/boot.4th, and it will be loaded before loader.rc, so you *could* use it inside loader.rc. Unfortunately, *that* still doesn't work. I have it almost working on my system. I think I'm down to the last bug (I think that because it works perfectly as long as no error happens inside the script). Showing contents of a file happens to be possible too, as soon as bin/9753 gets in. Jordan promised cat and more for us, but since he is too busy with his update targets, I decided to get "more" in. :-) -- Daniel C. Sobral (8-DCS) dcs@newsguy.com If you sell your soul to the Devil and all you get is an MCSE from it, you haven't gotten market rate. 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?36B0B085.114163>