Ignore:
Timestamp:
Aug 26, 2007, 12:26:06 PM (13 years ago)
Author:
Bruno Cornec
Message:

Use of conf file entries (iso_burning_*, media_device, media_size)
and adapatation of the rest of the code to that (including bkpinfo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondorestore.c

    r1581 r1594  
    912912    }
    913913    interactively_obtain_media_parameters_from_user(bkpinfo, FALSE);
    914     if (!bkpinfo->media_device[0]) {
     914    if (!bkpinfo->media_device) {
    915915        mr_msg(2, "Warning - failed to find media dev");
    916916    } else {
     
    954954    }
    955955    run_program_and_log_output("umount " MNT_CDROM, FALSE);
    956     if ((!bkpinfo->please_dont_eject) && (bkpinfo->media_device != NULL)) {
     956    if ((!bkpinfo->please_dont_eject) && (bkpinfo->media_device)) {
    957957        eject_device(bkpinfo->media_device);
    958958    }
     
    30373037    if (argc == 3 && strcmp(argv[1], "--paa") == 0) {
    30383038        g_current_media_number = atoi(argv[2]);
    3039         pause_and_ask_for_cdr(5, NULL);
     3039        pause_and_ask_for_cdr(5);
    30403040        paranoid_MR_finish(0);
    30413041    } else if (!bkpinfo->disaster_recovery) {   // live!
Note: See TracChangeset for help on using the changeset viewer.