]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_net.c
Add "source" command; prepare removal of "autoscr" command
[people/ms/u-boot.git] / common / cmd_net.c
index a6878491998afaa299f77ad06306bff83e028939..9bef7a2049e9013e8c062efbaa537b5cfe197f59 100644 (file)
@@ -222,9 +222,10 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
                rcode = do_bootm (cmdtp, 0, 1, local_args);
        }
 
-#ifdef CONFIG_AUTOSCRIPT
+#ifdef CONFIG_SOURCE
        if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) {
-               printf ("Running autoscript at addr 0x%08lX", load_addr);
+               printf ("Running "source" command at addr 0x%08lX",
+                       load_addr);
 
                s = getenv ("autoscript_uname");
                if (s)
@@ -233,7 +234,7 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
                        puts (" ...\n");
 
                show_boot_progress (83);
-               rcode = autoscript (load_addr, s);
+               rcode = source (load_addr, s);
        }
 #endif
        if (rcode < 0)