Changeset 426 in MondoRescue for trunk/mondo/mondo/mondorestore


Ignore:
Timestamp:
Feb 23, 2006, 4:09:24 PM (18 years ago)
Author:
bcornec
Message:

merge -r421:425 $SVN_M/branches/stable

Location:
trunk/mondo/mondo/mondorestore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondorestore/Makefile.am

    r30 r426  
    1212mondorestore_SOURCES  = mondo-prep.c mondo-restore.c mondo-rstr-newt.c \
    1313                        mondo-rstr-compare.c mondo-rstr-tools.c
    14 mondorestore_LDADD    = ../common/libmondo.la ../common/libmondo-newt.la @MONDORESTORE_STATIC@
     14mondorestore_LDADD    = ${top_builddir}/mondo/common/libmondo.a @MONDORESTORE_STATIC@
  • trunk/mondo/mondo/mondorestore/mondo-restore-EXT.h

    r59 r426  
    7272extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
    7373extern void sort_mountlist_by_device(struct mountlist_itself *);
    74 extern void success_message(void);
    7574extern void twenty_seconds_til_yikes(void);
    7675extern int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
  • trunk/mondo/mondo/mondorestore/mondo-restore.c

    r300 r426  
    392392#endif
    393393
    394 extern void success_message(void);
    395394extern void twenty_seconds_til_yikes(void);
    396395
     
    12261225            ("PC was restored successfully. Thank you for using Mondo Rescue.");
    12271226        log_to_screen
    1228             ("Please visit http://www.mondorescue.org and thank the dev team.");
     1227            ("Please visit our website at http://www.mondorescue.org for more information.");
    12291228    } else {
    1230 #ifdef FREELOADER
    1231         success_message();
    1232 #else
    1233         log_to_screen("PC was restored successfully!");
    1234 #endif
     1229        strcpy(tmp," Mondo has restored your system. Please remove the backup media and reboot.\n\nPlease visit our website at http://www.mondorescue.org for more information.");
     1230        if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "restore") == NULL) {
     1231            popup_and_OK(tmp);
     1232        }
     1233        log_to_screen
     1234            ("Mondo has restored your system. Please remove the backup media and reboot.");
     1235        log_to_screen
     1236            ("Please visit our website at http://www.mondorescue.org for more information.");
    12351237    }
    12361238    g_I_have_just_nuked = TRUE;
  • trunk/mondo/mondo/mondorestore/mondo-rstr-tools.c

    r309 r426  
    20602060
    20612061
    2062 
    2063 
    2064 
    2065 
    2066 /**
    2067  * Prompt the user to support the Mondo project.
    2068  */
    2069 void success_message(void)
    2070 {
    2071     int i;
    2072     /* malloc and ptr */
    2073     char *tmp;
    2074 
    2075     malloc_string(tmp);
    2076     if (strstr
    2077         (call_program_and_get_last_line_of_output("cat /proc/cmdline"),
    2078          "restore") == NULL) {
    2079         if (ask_me_yes_or_no
    2080             ("Have you contributed to the Mondo project financially or in some other way, yet?"))
    2081         {
    2082             log_to_screen
    2083                 ("Thank you for supporting Mondo. It goes from strength to strength,");
    2084             log_to_screen("thanks to the support of users like you.");
    2085         } else {
    2086             if (ask_me_yes_or_no
    2087                 ("Are you or your company willing to consider contributing to Mondo in some way?"))
    2088             {
    2089                 popup_and_OK
    2090                     ("To support the project which has just performed a valuable service for you, please visit http://www.mondorescue.com; click on 'Download' and then 'PayPal'.");
    2091             } else {
    2092                 log_to_screen
    2093                     ("Free Software, like freedom itself, must be supported or it will be lost.");
    2094                 log_msg(1,
    2095                         "To your credit, you were honest: you said no, you wouldn't be contributing");
    2096                 log_msg(1,
    2097                         "to this project, ever. However, that makes you a freeloader. I bet you're");
    2098                 log_msg(1,
    2099                         "the sort of person who likes to sneak into movie theatres...");
    2100                 popup_and_OK
    2101                     ("If you ever change your mind, you may support this product by going to http://www.mondrescue.com and clicking on 'Download', followed by 'PalPal'.");
    2102             }
    2103         }
    2104     }
    2105 #ifdef FREELOADER
    2106     i = (int) (random()) % 32;
    2107 #else
    2108     i = 1;
    2109 #endif
    2110 
    2111     if (i != 25) {
    2112         strcpy(tmp,
    2113                "Mondo has restored your system. Please remove the backup media and reboot.");
    2114     } else {
    2115         strcpy(tmp,
    2116                "M0nd0 h45 r3570r3d j00r 5y573m. P13453 r3m0v3 7h3 b4ckup m3d14 4nd r3b007.");
    2117     }
    2118     if (strstr
    2119         (call_program_and_get_last_line_of_output("cat /proc/cmdline"),
    2120          "restore") == NULL) {
    2121         popup_and_OK(tmp);
    2122     }
    2123     log_to_screen(tmp);
    2124     paranoid_free(tmp);
    2125 }
    2126 
    2127 /**************************************************************************
    2128  *END_SUCCESS_MESSAGE                                                     *
    2129  **************************************************************************/
    2130 
    2131 
    2132 
    21332062/**
    21342063 * Exit due to a signal (normal cleanup).
  • trunk/mondo/mondo/mondorestore/mondo-rstr-tools.h

    r59 r426  
    2727void setup_global_filenames(struct s_bkpinfo *bkpinfo);
    2828//void setup_signals(int);
    29 void success_message(void);
    3029void twenty_seconds_til_yikes(void);
    3130int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
Note: See TracChangeset for help on using the changeset viewer.