]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - net/rarp.c
* Patch by Rune Torgersen, 27 Feb 2004:
[karo-tx-uboot.git] / net / rarp.c
index 1c8aff063352f863035e11d284642d09457687eb..b8cc542c13a4d82288b39b194402a309f9e3bea6 100644 (file)
@@ -24,6 +24,7 @@
 #include <common.h>
 #include <command.h>
 #include <net.h>
+#include "nfs.h"
 #include "bootp.h"
 #include "rarp.h"
 #include "tftp.h"
@@ -46,9 +47,18 @@ int          RarpTry;
 static void
 RarpHandler(uchar * dummi0, unsigned dummi1, unsigned dummi2, unsigned dummi3)
 {
+       char *s;
 #ifdef DEBUG
        printf("Got good RARP\n");
 #endif
+       if (((s = getenv("autoload")) != NULL) && (*s == 'n')) {
+               NetState = NETLOOP_SUCCESS;
+               return;
+       }
+       else if ((s != NULL) && !strcmp(s, "NFS")) {
+               NfsStart();
+               return;
+       }
        TftpStart ();
 }