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

merge -r421:425 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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).
Note: See TracChangeset for help on using the changeset viewer.