Revision: 3073
          http://ipcop.svn.sourceforge.net/ipcop/?rev=3073&view=rev
Author:   owes
Date:     2009-06-17 10:30:09 +0000 (Wed, 17 Jun 2009)

Log Message:
-----------
Offer an immediate exit (=reboot) on "Welcome Screen".
A serial console does not have 3 finger salute and the power switch may not be 
easy to reach ...

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

Modified: ipcop/trunk/src/installer/installer.c
===================================================================
--- ipcop/trunk/src/installer/installer.c       2009-06-17 10:26:25 UTC (rev 
3072)
+++ ipcop/trunk/src/installer/installer.c       2009-06-17 10:30:09 UTC (rev 
3073)
@@ -752,6 +752,7 @@
     FILE *handle;
     char line[STRING_SIZE_LARGE];       //general purpose buffer
     int restore_success = SUCCESS;
+    int rc;
 
     /* read the parameters from the kernel cmdline */
     if (!(handle = fopen("/proc/cmdline", "r"))) {
@@ -926,7 +927,12 @@
     newtDrawRootText(18, 0, get_title());
     newtPushHelpLine(ipcop_gettext("TR_HELPLINE"));
     snprintf(line, STRING_SIZE_LARGE, ipcop_gettext("TR_WELCOME"), NAME);
-    newtWinMessage(get_title(), ipcop_gettext("TR_OK"), line);
+    rc = newtWinChoice(get_title(),
+                       ipcop_gettext("TR_OK"), ipcop_gettext("TR_CANCEL"),
+                       line);
+    if (rc == 2) {
+        goto EXIT;
+    }
 
     // find nics cdrom harddisk & floppies
     scan_hardware(1, nopcmcia, nousb, noscsi);


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to