Short: Requestor for OS selection during startup Uploader: uairk@mcl.mcl.ucsb.edu Author: uairk@mcl.mcl.ucsb.edu (Eric R. Augustine) Type: util/boot Basically the same program as the first BReq (Which I guess should be called BReq-1.0) with the only additions being that it opens its own custom screen and uses the ReadArgs routine instead of the standard C programming technique. If you look at the sources you will see "TIMEOUT" and "DEFAULT" options. These serve no purpose at the moment - I'm trying to think of a good way to implement a time out option (where you set the timeout on the command line and with a certain number of seconds of inactivity BReq will start the "DEFAULT" OS) I'm just not exactly sure at the moment how I am about to do this (any suggestions are graciously accepted) All this program does (or started out doing, rather) is put up a requestor that prompts you for your choice of one of two OS's (or as you will see any system call you wish) Since the way I implemented it was to make the "NetBSD" button utilize the system() call you can enter any string you like on the command line and it will execute that string when the "NetBSD" button is selected. The "ADOS" button just exits the program and returns you to the calling shell (or script - like the Startup-Sequence) The "NetBSD" default is: "sys:loadbsd sys:vmunix -a" The command line usage is: ADOS> BReq SYSSTRING="your string here" So it will work with "echo Hello, world" as well as something like: ADOS> BReq SYSSTRING="sys:bin/loadbsd >NIL: sys:NetBSD/vmunix -a" (the quotes are necessary) And in my Startup-Sequence (where I use BReq) C:breq >NIL: (since I have it defaulting to what I use normally) The command line args in all are BReq TIMEOUT/K,DEFAULT/K,SYSSTRING/K If you put something that doesn't work like merely "hello, world" AmigaDOS won't freak it'll just give you an "Unknown command" error. Obviously it is intended for NetBSD and it works fine right after "C:SetPatch" in my Startup-Sequence though you could obviously add a different string for whatever other purpose(s) you have. Also (This is in the ReqTools docs btw) you can select the OS button from the keyboard - the left button is LAmiga-V or Y and the right button can be selected either with ESC, LAmiga-B or N. Note: The compiled executable is looking for version 38+ of "reqtools.library" and to compile it yourself you'll more than likley need the package "ReqTools22b.lha" (available in the 'util/libs' subdirectory of aminet) I offer my thanks to Nico Francois for his excellent ReqTools package and of course, Markus Wild for bringing NetBSD to the Amiga. It's simple enough that I'd expect there aren't any bugs - though if there are I can be contacted at the above internet e-mail address until October of 1994. I will at some point in time get the timeout and default arguments but, there are other projects at hand and also that annoying job thing. Almost forgot - the copyright thingie... BReq.c is public domain, freeware in every last sense of the phrase/word - do what you want with it. Enjoy... - Eric.