ALFS Trac

Bruce Dubbs bruce.dubbs at gmail.com
Fri Mar 22 10:39:02 PDT 2013


Thomas Pegg wrote:

> How about something like this Bruce.

I like that better, but it doesn't give an option if not saving the 
configuration.   Better to either give a choice or just exit(1) if the 
config is not saved.

The key is in the Makefile though.

How about this:

+ menu/mconf.c        (working copy)
@@ -959,6 +959,8 @@

         /* Restart dialog to act more like when lxdialog was still 
separate */
         init_dialog();
+       stat = -1;
+
         do {
                 stat = dialog_yesno(NULL,
                                     "Do you wish to save your new 
JHALFS configuration?", 5, 60);
@@ -969,8 +971,13 @@
                 conf_write(NULL);
                 printf("\n"
                         "*** End of JHALFS configuration.\n");
-       } else
-               printf("\n\nYour JHALFS configuration changes were NOT 
saved.\n\n");
+       }
+       else
+       {
+      printf( "\nJHALFS terminated\n" );
+               exit(1);

+       }
+
         return 0;
  }


Commnet.  Tabs in programming source are evil.  Tabs in 'make' were a 
mistake too.

   -- Bruce




More information about the alfs-discuss mailing list