Ignore:
Timestamp:
Oct 20, 2007, 8:07:36 PM (12 years ago)
Author:
Bruno Cornec
Message:

Try to add USB support for mondoarchive with new functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-fork.c

    r1645 r1688  
    299299
    300300
     301/**
     302 * Call copy of data to create an USB image.
     303 * @param bkpinfo The backup information structure. Fields used:
     304 * - @c bkpinfo->backup_media_type
     305 * @return Exit code of @c copy (0 is success, anything else indicates failure).
     306 */
     307int
     308eval_call_to_make_USB(char *command, char *what_i_am_doing) {
     309
     310    /*@ int's  *** */
     311    int retval = 0;
     312
     313
     314/*@***********   End Variables ***************************************/
     315
     316    log_msg(3, "Starting");
     317    assert(bkpinfo != NULL);
     318
     319    log_to_screen
     320        ("Please be patient. Do not be alarmed by on-screen inactivity.");
     321    log_msg(4, "Calling open_evalcall_form() with what_i_am_doing='%s'",
     322            what_i_am_doing);
     323
     324    if (!g_text_mode) {
     325        newtSuspend();
     326    }
     327    log_msg(1, "command = '%s'", command);
     328    if (!g_text_mode) {
     329        retval = run_external_binary_with_percentage_indicator_NEW
     330            (what_i_am_doing, command);
     331    } else {
     332        retval += system(command);
     333    }
     334    if (!g_text_mode) {
     335        newtResume();
     336    }
     337
     338    return (retval);
     339}
     340
     341
    301342
    302343
Note: See TracChangeset for help on using the changeset viewer.