]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/install+setup/setup/main.c
firstsetup: add reboot if setup was not finnished.
[people/pmueller/ipfire-2.x.git] / src / install+setup / setup / main.c
index 33cae349e7936389177db188f08d191a98c317a3..a14930d85e749afe403eb710f60d207859abaf10 100644 (file)
@@ -199,7 +199,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 not finnished.\n");
+                       fflush(flog);
+                       fclose(flog);
+
+                       newtFinished();
+
+                       return 1;
+               }
        }
 
        fprintf(flog, "Setup program ended.\n");