diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-13 00:57:06 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-13 00:57:06 +0000 |
commit | 6d7f44acc0790de07020fb1ea050481ef8d77819 (patch) | |
tree | cb8d8c727d52836b8830ec22e33120306a552c5f /sys | |
parent | 01aaa7bddb05beb62b71b6ac37e366a45da1a046 (diff) | |
download | FreeBSD-src-6d7f44acc0790de07020fb1ea050481ef8d77819.zip FreeBSD-src-6d7f44acc0790de07020fb1ea050481ef8d77819.tar.gz |
Make the command set actually work the way I'd intended - you can abbrevate
commands now, as long as whatever you abbreviate them to remains unique.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/i386/userconfig.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c index f8fc14a..c296fd9 100644 --- a/sys/i386/i386/userconfig.c +++ b/sys/i386/i386/userconfig.c @@ -38,7 +38,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: userconfig.c,v 1.11 1994/11/13 00:42:01 jkh Exp $ + * $Id: userconfig.c,v 1.12 1994/11/13 00:43:29 jkh Exp $ */ #include <sys/param.h> @@ -111,19 +111,17 @@ CmdParm dev_parms[] = { }; Cmd CmdList[] = { - { "ls", list_devices, NULL }, /* ls */ - { "list", list_devices, NULL }, /* "" */ + { "?", helpfunc, NULL }, /* "" */ + { "di", set_device_disable, dev_parms }, /* disable dev */ + { "dr", set_device_drq, int_parms }, /* drq dev # */ + { "en", set_device_enable, dev_parms }, /* enable dev */ + { "ex", quitfunc, NULL }, /* "" */ + { "h", helpfunc, NULL }, /* help */ { "io", set_device_ioaddr, addr_parms }, /* io dev addr */ - { "irq", set_device_irq, int_parms }, /* irq dev # */ - { "drq", set_device_drq, int_parms }, /* drq dev # */ - { "mem", set_device_mem, addr_parms }, /* mem dev addr */ - { "enable", set_device_enable, dev_parms }, /* enable dev */ - { "disable", set_device_disable, dev_parms }, /* disable dev */ - { "quit", quitfunc, NULL }, /* quit */ + { "ir", set_device_irq, int_parms }, /* irq dev # */ + { "l", list_devices, NULL }, /* ls */ + { "m", set_device_mem, addr_parms }, /* mem dev addr */ { "q", quitfunc, NULL }, /* "" */ - { "exit", quitfunc, NULL }, /* "" */ - { "help", helpfunc, NULL }, /* help */ - { "?", helpfunc, NULL }, /* "" */ { NULL, NULL, NULL }, }; @@ -308,7 +306,8 @@ helpfunc(CmdParm *parms) printf("enable <devname>\tEnable device\n"); printf("disable <devname>\tDisable device (will not be probed)\n"); printf("quit\t\t\tExit this configuration utility\n"); - printf("help\t\t\tThis message\n"); + printf("help\t\t\tThis message\n\n"); + printf("Commands may also be abbreviated to a unique number of characters\n"); return 0; } |