From 74de7aefd79690bae8cf5a5120f5962d444be089 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 1 Apr 2009 23:34:12 +0200 Subject: Add "source" command; prepare removal of "autoscr" command According to the doc/feature-removal-schedule.txt, the "autoscr" command will be replaced by the "source" command in approximately 6 months from now. This patch prepares this change and starts a 6 month transition period as follows: - The new "source" command has been added, which implements exactly the same functionlaity as the old "autoscr" command before - The old "autoscr" command name is kept as an alias for compatibility - Command sequences, script files atc. have been adapted to use the new "source" command - Related environment variables ("autoscript", "autoscript_uname") have *not* been adapted yet; these will be renamed resp. removed in a separate patch when the support for the "autoscr" command get's finally dropped. Signed-off-by: Wolfgang Denk --- board/cray/L1/L1.c | 2 +- board/cray/L1/bootscript.hush | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'board/cray') diff --git a/board/cray/L1/L1.c b/board/cray/L1/L1.c index 1c82bdf12..8a06ecc66 100644 --- a/board/cray/L1/L1.c +++ b/board/cray/L1/L1.c @@ -164,7 +164,7 @@ int misc_init_r (void) setenv ("ethaddr", e); } } - sprintf (bootcmd,"autoscript %X",(unsigned)bootscript); + sprintf (bootcmd,"source %X",(unsigned)bootscript); setenv ("bootcmd", bootcmd); return (0); } diff --git a/board/cray/L1/bootscript.hush b/board/cray/L1/bootscript.hush index ec4839b5d..f2f78ad5c 100644 --- a/board/cray/L1/bootscript.hush +++ b/board/cray/L1/bootscript.hush @@ -31,7 +31,7 @@ if printenv bootscript tftp $tftp_addr $bootcript if imi $tftp_addr then - autoscript $tftp_addr + source $tftp_addr fi fi -- cgit v1.2.3