Changeset 426 in MondoRescue for trunk/mondo/mondo/mondorestore
- Timestamp:
- Feb 23, 2006, 4:09:24 PM (18 years ago)
- Location:
- trunk/mondo/mondo/mondorestore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/Makefile.am
r30 r426 12 12 mondorestore_SOURCES = mondo-prep.c mondo-restore.c mondo-rstr-newt.c \ 13 13 mondo-rstr-compare.c mondo-rstr-tools.c 14 mondorestore_LDADD = ../common/libmondo.la ../common/libmondo-newt.la @MONDORESTORE_STATIC@14 mondorestore_LDADD = ${top_builddir}/mondo/common/libmondo.a @MONDORESTORE_STATIC@ -
trunk/mondo/mondo/mondorestore/mondo-restore-EXT.h
r59 r426 72 72 extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool); 73 73 extern void sort_mountlist_by_device(struct mountlist_itself *); 74 extern void success_message(void);75 74 extern void twenty_seconds_til_yikes(void); 76 75 extern int run_raw_mbr(bool offer_to_hack_scripts, char *bd); -
trunk/mondo/mondo/mondorestore/mondo-restore.c
r300 r426 392 392 #endif 393 393 394 extern void success_message(void);395 394 extern void twenty_seconds_til_yikes(void); 396 395 … … 1226 1225 ("PC was restored successfully. Thank you for using Mondo Rescue."); 1227 1226 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."); 1229 1228 } 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."); 1235 1237 } 1236 1238 g_I_have_just_nuked = TRUE; -
trunk/mondo/mondo/mondorestore/mondo-rstr-tools.c
r309 r426 2060 2060 2061 2061 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 (strstr2077 (call_program_and_get_last_line_of_output("cat /proc/cmdline"),2078 "restore") == NULL) {2079 if (ask_me_yes_or_no2080 ("Have you contributed to the Mondo project financially or in some other way, yet?"))2081 {2082 log_to_screen2083 ("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_no2087 ("Are you or your company willing to consider contributing to Mondo in some way?"))2088 {2089 popup_and_OK2090 ("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_screen2093 ("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_OK2101 ("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 FREELOADER2106 i = (int) (random()) % 32;2107 #else2108 i = 1;2109 #endif2110 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 (strstr2119 (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 2133 2062 /** 2134 2063 * Exit due to a signal (normal cleanup). -
trunk/mondo/mondo/mondorestore/mondo-rstr-tools.h
r59 r426 27 27 void setup_global_filenames(struct s_bkpinfo *bkpinfo); 28 28 //void setup_signals(int); 29 void success_message(void);30 29 void twenty_seconds_til_yikes(void); 31 30 int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
Note:
See TracChangeset
for help on using the changeset viewer.