- Timestamp:
- Oct 24, 2007, 1:59:37 AM (18 years ago)
- Location:
- branches/2.2.5/mondo/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-archive.c
r1697 r1703 984 984 __LINE__); 985 985 } 986 log_to_screen(bkpinfo->tmpdir);987 986 sprintf(tmp, "%s/BOOTLOADER.NAME", bkpinfo->tmpdir); 988 987 if (write_one_liner_data_file(tmp, bootldr_str)) { -
branches/2.2.5/mondo/src/common/newt-specific.c
r1665 r1703 482 482 run_program_and_log_output("rm -Rf /mondo.scratch.* /tmp.mondo.*", 483 483 FALSE); 484 if (g_erase_tmpdir_and_scratchdir) {485 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 1);486 }487 484 if (g_selfmounted_isodir) { 488 485 sprintf(command, "umount %s", g_selfmounted_isodir); … … 491 488 run_program_and_log_output(command, 1); 492 489 } 493 // iamhere("foo");494 /* system("clear"); */495 // iamhere("About to call newtFinished");496 490 if (!g_text_mode) { 497 491 if (does_file_exist("/THIS-IS-A-RAMDISK")) { … … 503 497 } 504 498 } 505 // system("clear");506 // iamhere("Finished calling newtFinished");507 499 printf("Execution run ended; result=%d\n", signal); 508 500 printf("Type 'less %s' to see the output log\n", MONDO_LOGFILE); 501 if (g_erase_tmpdir_and_scratchdir) { 502 system(g_erase_tmpdir_and_scratchdir); 503 } 504 paranoid_free(command); 505 paranoid_free(bkpinfo); 509 506 free_libmondo_global_strings(); 510 507 exit(signal); … … 1383 1380 b2 = newtButton(17, 1, "CD-RW disks"); 1384 1381 b3 = newtButton(1, 9, "Tape drive "); 1385 b4 = newtButton(17, 5, " CD streamer");1382 b4 = newtButton(17, 5, "USB Key/Disk"); 1386 1383 b5 = newtButton(1, 5, " DVD disks "); 1387 1384 b6 = newtButton(17, 9, " NFS mount "); … … 1401 1398 output = tape; 1402 1399 } else if (b_res == b4) { 1403 output = cdstream;1400 output = usb; 1404 1401 } else if (b_res == b5) { 1405 1402 output = dvd; -
branches/2.2.5/mondo/src/mondoarchive/main.c
r1697 r1703 529 529 run_program_and_log_output(tmp, TRUE); 530 530 } 531 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, TRUE);532 531 533 532 run_program_and_log_output("mount", 2); … … 542 541 register_pid(0, "mondo"); 543 542 set_signals(FALSE); 544 chdir("/tmp"); // just in case there's something wrong with g_erase_tmpdir_and_scratchdir 545 system(g_erase_tmpdir_and_scratchdir); 546 547 /* assemble command string for deletion of Mondo's tmp directory */ 548 sprintf(tmp, "rm -Rf %s", bkpinfo->tmpdir); 549 543 550 544 free_libmondo_global_strings(); 551 545 paranoid_free(say_at_end); 552 paranoid_free(bkpinfo);546 553 547 554 548 if (!g_cdrom_drive_is_here) { … … 562 556 log_msg(0, "Time finished: %s", mr_date()); 563 557 564 /* remove Mondo's tmp directory */ 565 system(tmp); 566 paranoid_free(tmp); 558 chdir("/tmp"); // just in case there's something wrong with g_erase_tmpdir_and_scratchdir 567 559 568 560 if (!g_text_mode) { … … 570 562 ("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt."); 571 563 log_to_screen("See %s for details of backup run.", MONDO_LOGFILE); 572 finish(retval);573 564 } else { 574 565 printf("See %s for details of backup run.\n", MONDO_LOGFILE); 575 exit(retval);576 }566 } 567 finish(retval); 577 568 578 569 return EXIT_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.