Revision: 5643
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5643&view=rev
Author:   owes
Date:     2011-04-25 14:39:47 +0000 (Mon, 25 Apr 2011)

Log Message:
-----------
When using netboot (PXE) set default for source files to http/ftp.

Modified Paths:
--------------
    ipcop/trunk/src/installer/installer.c

Modified: ipcop/trunk/src/installer/installer.c
===================================================================
--- ipcop/trunk/src/installer/installer.c       2011-04-25 14:33:12 UTC (rev 
5642)
+++ ipcop/trunk/src/installer/installer.c       2011-04-25 14:39:47 UTC (rev 
5643)
@@ -509,7 +509,7 @@
 static int findsource(void)
 {
     char *installtypes[] = { "CDROM/USB-KEY", "HTTP/FTP", NULL };
-    int installtype = 0;        /* depending on menu, 0 = cdrom, 1 = http/ftp 
*/
+    int installtype;        /* depending on menu, 0 = cdrom, 1 = http/ftp */
     int i, rc;
     int numnetworks = 0;
     char line[STRING_SIZE_LARGE];
@@ -527,6 +527,14 @@
             numnetworks++;
     }
 
+    if (medium_boot == network) {
+        /* Set default selection for source to http/ftp */
+        installtype = 1;
+    }
+    else {
+        installtype = 0;
+    }
+
     /* Choose source for tarball. Very basic. */
     while (1) {
         snprintf(line, STRING_SIZE_LARGE, 
ipcop_gettext("TR_SELECT_INSTALLATION_MEDIA_LONG"), NAME);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to