]> git.karo-electronics.de Git - karo-tx-redboot.git/blobdiff - packages/redboot/v2_0/src/net/net_io.c
RedBoot STK5 Release 2010-03-04
[karo-tx-redboot.git] / packages / redboot / v2_0 / src / net / net_io.c
index 499d5d7472a76cda5329afc2fd0b55631dc09ef7..15b49a880c2b6f9f1237110dbcecddb46f4b9b49 100644 (file)
@@ -853,13 +853,12 @@ do_ip_addr(int argc, char *argv[])
 
        if (!have_net) {
                net_init();
+               if (!__local_enet_sc) {
+                       diag_printf("Sorry, networking is not available.\n");
+                       return;
+               }
        }
-#if 0
-       if (!have_net) {
-               diag_printf("Sorry, networking is not available.\n");
-               return;
-       }
-#endif
+
        init_opts(&opts[0], 'l', true, OPTION_ARG_TYPE_STR,
                        &ip_addr, &ip_addr_set, "local IP address");
        init_opts(&opts[1], 'h', true, OPTION_ARG_TYPE_STR,