summaryrefslogtreecommitdiff
path: root/avr/cli.c
diff options
context:
space:
mode:
authorLeo C2016-05-25 13:50:53 +0200
committerLeo C2016-05-25 13:50:53 +0200
commit04b3ea0e67e1f1fe8e9af71f6d532af5471da0e3 (patch)
tree7c061f9f7f6ee41ed02f76f6f67b63a322375cd8 /avr/cli.c
parent32154e5a9e9bf0a52269b3715711b76dc8fcac0f (diff)
downloadz180-stamp-04b3ea0e67e1f1fe8e9af71f6d532af5471da0e3.zip
new command: source - run commands from a file
Diffstat (limited to 'avr/cli.c')
-rw-r--r--avr/cli.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/avr/cli.c b/avr/cli.c
index aa2c388..6e27fce 100644
--- a/avr/cli.c
+++ b/avr/cli.c
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ * (C) Copyright 2014-2016 Leo C. <erbl259-lmu@yahoo.de>
*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -385,27 +385,3 @@ void cli_loop(void)
}
}
}
-
-
-command_ret_t do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
- int i;
- (void) cmdtp;
-
- if (argc < 2)
- return CMD_RET_USAGE;
-
- for (i = 1; i < argc; ++i) {
- char *arg;
-
- arg = getenv_char(argv[i]);
- if (arg == NULL) {
- printf_P(PSTR("## Error: \"%s\" is not set\n"), argv[i]);
- return CMD_RET_FAILURE;
- }
-
- if (run_command(arg, flag) != 0)
- return CMD_RET_FAILURE;
- }
- return CMD_RET_SUCCESS;
-}