diff options
author | Heiko Schocher <hs@denx.de> | 2008-10-15 09:40:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:02 +0200 |
commit | 81473f67810c4c9b7efaed8dee258ed6bc4c7983 (patch) | |
tree | 8a700ac42b73d5ec6f01bd4466440d62465bd7f1 /include | |
parent | 67b23a322848d828a5e45c0567b72762bfde7abf (diff) | |
download | u-boot-imx-81473f67810c4c9b7efaed8dee258ed6bc4c7983.zip u-boot-imx-81473f67810c4c9b7efaed8dee258ed6bc4c7983.tar.gz u-boot-imx-81473f67810c4c9b7efaed8dee258ed6bc4c7983.tar.bz2 |
hush: add showvar command for hush shell.
This new command shows the local variables defined in
the hush shell:
=> help showvar
showvar
- print values of all hushshell variables
showvar name ...
- print value of hushshell variable 'name'
Also make the set_local_var() and unset_local_var ()
no longer static, so it is possible to define local
hush shell variables at boot time. If CONFIG_HUSH_INIT_VAR
is defined, u-boot calls hush_init_var (), where
boardspecific code can define local hush shell
variables at boottime.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/hush.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hush.h b/include/hush.h index 20e48db..0805ff3 100644 --- a/include/hush.h +++ b/include/hush.h @@ -32,4 +32,10 @@ extern int u_boot_hush_start(void); extern int parse_string_outer(char *, int); extern int parse_file_outer(void); +int set_local_var(const char *s, int flg_export); +void unset_local_var(const char *name); + +#if defined(CONFIG_HUSH_INIT_VAR) +extern int hush_init_var (void); +#endif #endif |