summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/commands.c
Commit message (Collapse)AuthorAgeFilesLines
* Close a file descriptor leak in an error case.brueffer2009-10-281-0/+1
| | | | | | PR: 138374 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* There's no reason for "read" and "echo" commands to notru2004-11-131-2/+2
| | | | appear in the online command list.
* Pass the "?" command output through the pager.ru2004-11-121-4/+15
| | | | | (This doesn't quite work as this command is overridden by Forth, and some Forth commands are appended to the output.)
* Fixed exiting from pager using the `q' key while pagingru2004-09-291-4/+6
| | | | "help index" or "help <topic>" with list of subtopics.
* Use __FBSDID().obrien2003-08-251-2/+3
| | | | Also some minor style cleanups.
* Libdisk does not need to include <sys/diskslice.h> any more.phk2003-04-041-1/+0
| | | | | | | | | Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h> Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well. Adjust includes in sys/boot accordingly.
* Print out 'foo devices:' as the line before displaying a group ofjhb2001-11-041-1/+1
| | | | | | devices in 'lsdev' output rather than printing out a pointer to the print function since the user really could care less about the pointer value. Perhaps this was intended to be a debugging printf?
* Whenever the user might be offered a chance to quit throughdcs2001-02-221-4/+7
| | | | | | pager_output(), respect that choice. PR: 15747
* Don't call printf with no format string. This is technically a securitykris2000-07-101-2/+2
| | | | | vulnerability and could in principle be used to upload a new kernel from the bootloader :-)
* Make typing 'q' or 'Q' work for the show command as the pager promptps2000-06-141-1/+2
| | | | says it should.
* Correctly handle a user-requested abort in the middle of displaying amsmith1999-12-281-2/+4
| | | | | | | help subtopic. PR: kern/13196 Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix a number of memory leaks and other memory-related disorders.dcs1999-03-081-1/+7
| | | | | | | | | | | | | | | Also, unbreak the breakage introduced at the last revision of module.c. This changes the semantics of mod_searchfile() (and mod_searchmodule()) to make the caller's responsibility freeing the buffer returned. This is different from other functions in loader's code, and was done as a fix for kern/9631. If someone wants to revert this to the original behavior, don't forget to fix kern/9631 in another way. This should also fix bin/10462, which was introduced as a result of the first try at kern/9631 (module.c last revision). PR: bin/10462 Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>
* Whoops! Forgot to include Mr. Sobray's more command in the last setjkh1999-02-011-1/+46
| | | | | | of commits. Submitted by: Daniel C. Sobral <dcs@newsguy.com>
* No builtin command resets getopt before using it, causingmsmith1999-01-111-1/+4
| | | | | | | | problems in case a wrong option was given previously, and no option is given to the next command. PR: kern/9371 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* Add a description for 'lsdev' so that it shows up in the '?' displaymsmith1999-01-091-2/+3
|
* - Add a new command 'lsdev' to list devices which might be likely to hostmsmith1998-10-311-8/+196
| | | | | | | | | | filesystems. - New 'help' command and data in the help.* files (not yet installed), provides topic and subtopic help, indexes, etc. - Don't crash if the user tries to set an invalid console. Be helpful instead. - Expand tabs (badly) on the i386 video console. - Some minor cosmetic changes.
* Make ISA PnP work. This successfully enumerates as many ISA devices as Imsmith1998-10-211-5/+5
| | | | | | | | | | | | can fit into my test machine. - Move to using STAILQs rather than ad-hoc singly-linked lists. - Use a mostly procedural interface to the PnP information. This improves data-hiding. Implement a new linker-set technique (currently on i386 only but should work on Alpha as well). This is a good candidate for replacing the current gensetdefs cruft completely.
* Sync the MODINFO constants with <sys/linker.h>msmith1998-10-091-3/+1
| | | | | | Remove debugging in command_read(). Correctly strip leading controls on script commands. Make 'ls' more DWIM in regard to pathnames. We can still do better.
* - VERBOSE_LS is obsolete, as the heap is much better behaved now.msmith1998-10-071-2/+61
| | | | | | | | | | | | | | | - Don't whine about nodes we can't stat(); these are usually symlinks that lead out of the filesystem. - Autoboot is now controlled by $autoboot_delay, which is a value in seconds or NO to disable autoboot. - Don't autoboot at the end of boot.conf if we have already tried. - Add a 'read' command to complement 'echo'. Both are still hidden. - Improve the 'source' command/function so that it is possible to source scripts off removable media. The entire script is read and saved before beginning execution. Script lines beginning with '@' will not be echoed when being executed. Script execution will normally terminate at the first error, however if the script line begins with '-' this behaviour is overriden for that command.
* Remove 'panic' command (it works), don't ask for a keypress in panic, asmsmith1998-09-181-12/+1
| | | | exit() does. Perhaps it shouldn't?
* Bootstrap updates.msmith1998-09-031-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move some startup code from MD to MI sections - Add a 'copyout' and some copyout-related functions. These will be obsoleted when BTX is available for the 386 and the kernel load area becomes directly addressable. - Add the ability load an arbitrary file as a module, associating and arbitrary type string with it. This can be used eg. for loading splash-screen images etc. - Add KLD module dependancy infrastructure. We know how to look for dependancies inside KLD modules, how to resolve these dependancies and what to do if things go wrong. Only works for a.out at the moment, due to lack of an MI ELF loader. Attach KLD module information to loaded modules as metadata, but don't pass it to the kernel (it can find it itself). - Load a.out KLD modules on a page boundary. Only pad the a.out BSS for the kernel, as it may want to throw symbols away. (We might want to do this for KLD modules too.) - Allow commands to be hidden from the '?' display, to avoid cluttering it with things like 'echo'. Add 'echo'. - Bring the 'prompt' command into line with the parser syntax. - Fix the verbose 'ls'; it was using an uninitialised stack variable. - Add a '-v' flag to 'lsmod' to have it display module metadata as well (not terribly useful for the average user) - Support a 'module searchpath' for required modules. - The bootstrap file on i386 is now called 'loader' to permit the /boot directory to use that name. - Discard the old i386 pread() function, as it's replaced by arch_readin()
* This is the new unified bootstrap, sometimes known previously as themsmith1998-08-211-0/+155
'three-stage' bootstrap. There are a number of caveats with the code in its current state: - The i386 bootstrap only supports booting from a floppy. - The kernel and kld do not yet know how to deal with the extended information and module summary passed in. - PnP-based autodetection and demand loading of modules is not implemented. - i386 ELF kernel loading is not ready yet. - The i386 bootstrap is loaded via an ugly blockmap. On the alpha, both net- and disk-booting (SRM console machines only) is supported. No blockmaps are used by this code. Obtained from: Parts from the NetBSD/i386 standalone bootstrap.
OpenPOWER on IntegriCloud