]> git.ipfire.org Git - people/ms/u-boot.git/commit - include/hush.h
hush: add showvar command for hush shell.
authorHeiko Schocher <hs@denx.de>
Wed, 15 Oct 2008 07:40:28 +0000 (09:40 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:02 +0000 (21:54 +0200)
commit81473f67810c4c9b7efaed8dee258ed6bc4c7983
tree8a700ac42b73d5ec6f01bd4466440d62465bd7f1
parent67b23a322848d828a5e45c0567b72762bfde7abf
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>
common/hush.c
common/main.c
include/hush.h