From 13b7579bd45e89304b8697a6fb471bf0524f49d4 Mon Sep 17 00:00:00 2001 From: germeier Date: Sun, 27 Oct 2002 02:45:28 +0000 Subject: added code to read/write and display config files (CONFIG.DAT and FMCONFIG.DAT) another 8.3 fix :-( --- mpiosh/global.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'mpiosh/global.c') diff --git a/mpiosh/global.c b/mpiosh/global.c index 7fe21b6..d300f62 100644 --- a/mpiosh/global.c +++ b/mpiosh/global.c @@ -2,7 +2,7 @@ * * Author: Andreas Buesching * - * $Id: global.c,v 1.3 2002/10/18 08:39:23 crunchy Exp $ + * $Id: global.c,v 1.4 2002/10/27 02:45:28 germeier Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -105,12 +105,18 @@ mpiosh_cmd_t commands[] = { " dump FAT, directory, spare area and the first 0x100 of the\n" " selected memory card", mpiosh_cmd_dump_mem, NULL }, - { "config", (char *[]) { "conf", NULL }, "-w -r -s", + { "config", (char *[]) { "conf", NULL }, "[read|write|show]", " give access to the configuration file of the MPIO player\n" - " -w write the configuration back to the MPIO player\n" - " -r read the configuration file and dumps it on the local disc\n" - " -s show the current configuration", + " read read the configuration file and dump it on the local disc\n" + " write write the configuration back to the MPIO player\n" + " show show the current configuration", mpiosh_cmd_config, mpiosh_readline_comp_config }, + { "channel", (char *[]) { "channels", "chan", NULL }, "[read|write|show]", + " give access to the radio channel file of the MPIO player\n" + " read read the channel file and dump it on the local disc\n" + " write write the channel file back to the MPIO player\n" + " show show the current channel configuration", + mpiosh_cmd_channel, mpiosh_readline_comp_config }, { NULL, NULL, NULL, NULL, NULL, NULL } }; -- cgit v1.2.3