]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/install+setup/setup/main.c
Merge branch 'iptables-upnpfw' into core67-merge
[ipfire-2.x.git] / src / install+setup / setup / main.c
index 0595468ac4a8e3b4d8194124c7451f653a529089..d078a5258b7bca8f106359ef04bf0270cc7f19ac 100644 (file)
@@ -22,6 +22,11 @@ struct knic knics[20] = { { "" , "" , "" , "" } };
 
 extern char *en_tr[];
 extern char *de_tr[];
+extern char *fr_tr[];
+extern char *es_tr[];
+extern char *pl_tr[];
+extern char *ru_tr[];
+extern char *nl_tr[];
 
 int main(int argc, char *argv[])
 {
@@ -29,8 +34,8 @@ int main(int argc, char *argv[])
        char *shortlangnames[] = { "en", NULL };
        char **langtrs[] = { en_tr, NULL };
 #else
-       char *shortlangnames[] = { "de", "en", NULL };
-       char **langtrs[] = { de_tr, en_tr, NULL };
+       char *shortlangnames[] = { "de", "en", "fr", "es", "nl", "pl", "ru", NULL };
+       char **langtrs[] = { de_tr, en_tr, fr_tr, es_tr, nl_tr, pl_tr, ru_tr, NULL };
 #endif
        int choice;
        char *sections[11]; /* need to fill this out AFTER knowning lang */
@@ -176,15 +181,15 @@ int main(int argc, char *argv[])
                        goto EXIT;
                if (!(handledomainname()))
                        goto EXIT;
-               if (!(handlenetworking()))
+               if (!(handlerootpassword()))
                        goto EXIT;
-               if (!(handleisdn()))
+               if (!(handleadminpassword()))
                        goto EXIT;
-               if (!(handledhcp()))
+               if (!(handleisdn()))
                        goto EXIT;
-               if (!(handlerootpassword()))
+               if (!(handlenetworking()))
                        goto EXIT;
-               if (!(handleadminpassword()))
+               if (!(handledhcp()))
                        goto EXIT;
 
                autook = 1;
@@ -197,7 +202,17 @@ EXIT:
                if (autook)
                        newtWinMessage(title, ctr[TR_OK], ctr[TR_SETUP_FINISHED]);
                else
+               {
                        newtWinMessage(ctr[TR_WARNING], ctr[TR_OK], ctr[TR_SETUP_NOT_COMPLETE]);
+
+                       fprintf(flog, "Setup program has not finished.\n");
+                       fflush(flog);
+                       fclose(flog);
+
+                       newtFinished();
+
+                       return 1;
+               }
        }
 
        fprintf(flog, "Setup program ended.\n");