]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/setup/networking.c
setup: add ignore to all no nic assigned errors
[ipfire-2.x.git] / src / setup / networking.c
index 00dfc4b5a7d3a8aa02344d2966a60db6f7776007..d6cd30cff0219b7b92958174ce286e2afeaf004d 100644 (file)
@@ -144,9 +144,13 @@ int oktoleave(void)
                strcpy(temp, ""); findkey(kv, "GREEN_DEV", temp);
                if (!(strlen(temp)))
                {
-                       errorbox(_("No GREEN interface assigned."));
-                       freekeyvalues(kv);
-                       return 0;
+                       rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+                               _("No GREEN interface assigned."));
+                       if (rc == 0 || rc == 1)
+                       {
+                               freekeyvalues(kv);
+                               return 0;
+                       }
                }
                if (!(interfacecheck(kv, "GREEN")))
                {
@@ -181,9 +185,13 @@ int oktoleave(void)
                strcpy(temp, ""); findkey(kv, "ORANGE_DEV", temp);
                if (!(strlen(temp)))
                {
-                       errorbox(_("No ORANGE interface assigned."));
-                       freekeyvalues(kv);
-                       return 0;
+                       rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+                               _("No ORANGE interface assigned."));
+                       if (rc == 0 || rc == 1)
+                       {
+                               freekeyvalues(kv);
+                               return 0;
+                       }
                }
                if (!(interfacecheck(kv, "ORANGE")))
                {
@@ -197,9 +205,13 @@ int oktoleave(void)
                strcpy(temp, ""); findkey(kv, "BLUE_DEV", temp);
                if (!(strlen(temp)))
                {
-                       errorbox(_("No BLUE interface assigned."));
-                       freekeyvalues(kv);
-                       return 0;
+                       rc = newtWinChoice(_("Error"), _("OK"), _("Ignore"),
+                               _("No BLUE interface assigned."));
+                       if (rc == 0 || rc == 1)
+                       {
+                               freekeyvalues(kv);
+                               return 0;
+                       }
                }
                if (!(interfacecheck(kv, "BLUE")))
                {