diff options
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index 9ee32a5..e32845e 100644 --- a/common/main.c +++ b/common/main.c @@ -279,6 +279,16 @@ void main_loop (void) } #endif /* CONFIG_MODEM_SUPPORT */ +#ifdef CONFIG_VERSION_VARIABLE + { + extern char version_string[]; + char *str = getenv("ver"); + + if (!str) + setenv ("ver", version_string); /* set version variable */ + } +#endif /* CONFIG_VERSION_VARIABLE */ + #ifdef CFG_HUSH_PARSER u_boot_hush_start (); #endif |