diff options
| author | Michael Brown | 2006-12-20 01:27:11 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-20 01:27:11 +0100 |
| commit | 4d0d275ce4e4e5dca6b77a7f590f4180c10d6242 (patch) | |
| tree | 9f21a002f35eaa0bca562fb56c4ac1ca67a454a5 /src/commandline/commands | |
| parent | Use new minimal shell (diff) | |
| download | ipxe-4d0d275ce4e4e5dca6b77a7f590f4180c10d6242.tar.gz ipxe-4d0d275ce4e4e5dca6b77a7f590f4180c10d6242.tar.xz ipxe-4d0d275ce4e4e5dca6b77a7f590f4180c10d6242.zip | |
Functionality now replaced by a combination of readline() and system().
Diffstat (limited to 'src/commandline/commands')
| -rw-r--r-- | src/commandline/commands/help.c | 29 | ||||
| -rw-r--r-- | src/commandline/commands/test.c | 20 | ||||
| -rw-r--r-- | src/commandline/commands/test2.c | 20 |
3 files changed, 0 insertions, 69 deletions
diff --git a/src/commandline/commands/help.c b/src/commandline/commands/help.c deleted file mode 100644 index 758c3c1e8..000000000 --- a/src/commandline/commands/help.c +++ /dev/null @@ -1,29 +0,0 @@ -#include <string.h> -#include <vsprintf.h> -#include <gpxe/tables.h> -#include <gpxe/command.h> - -static struct command cmd_start[0] __table_start ( commands ); -static struct command cmd_end[0] __table_end ( commands ); - -void help_req(){} - -static int cmd_help_exec ( int argc, char **argv ) { - - struct command *ccmd; - - printf("Available commands:\n\n"); - - for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) { - printf (" %s\n", ccmd->name ); - } - - return 0; -} - -struct command help_command __command = { - .name = "help", - .exec = cmd_help_exec, -}; - - diff --git a/src/commandline/commands/test.c b/src/commandline/commands/test.c deleted file mode 100644 index 59b0b72b7..000000000 --- a/src/commandline/commands/test.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <vsprintf.h> -#include <gpxe/command.h> - -void test_req(){} - -static int cmd_test_exec ( int argc, char **argv ) { - int i; - - printf("Hello, world!\nI got the following arguments passed to me: \n"); - for(i = 0; i < argc; i++){ - printf("%d: \"%s\"\n", i, argv[i]); - } - return 0; -} - -struct command test_command __command = { - .name = "test", - .exec = cmd_test_exec, -}; - diff --git a/src/commandline/commands/test2.c b/src/commandline/commands/test2.c deleted file mode 100644 index 6cb2ee70b..000000000 --- a/src/commandline/commands/test2.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <vsprintf.h> -#include <gpxe/command.h> - -void test2_req(){} - -static int cmd_test2_exec ( int argc, char **argv ) { - int i; - - printf("Hello, world!\nI got the following arguments passed to me: \n"); - for(i = 0; i < argc; i++){ - printf("%d: \"%s\"\n", i, argv[i]); - } - return 0; -} - -struct command test2_command __command = { - .name = "test2", - .exec = cmd_test2_exec, -}; - |
