Changeset 1079 in MondoRescue for trunk/mondo/src/common/libmondo-devices.c


Ignore:
Timestamp:
Jan 28, 2007, 5:58:18 PM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r1045:1078 £SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/common/libmondo-devices.c

    r1000 r1079  
    1 /*
    2  * $Id$
    3  * Subroutines for handling devices
    4  */
     1/* libmondo-devices.c                 Subroutines for handling devices
     2   $Id$
     3*/
     4
    55/**
    66 * @file
     
    14691469    case cdrw:
    14701470    case dvd:
     1471    case usb:
    14711472        if (archiving_to_media) {
    1472             if (bkpinfo->backup_media_type != dvd) {
     1473            if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) {
    14731474                if (ask_me_yes_or_no
    14741475                    (_("Is your computer a laptop, or does the CD writer incorporate BurnProof technology?")))
     
    14901491                mr_asprintf(&sz_size, "%d", DEFAULT_DVD_DISK_SIZE); // 4.7 salesman's GB = 4.482 real GB = 4582 MB
    14911492                log_msg(1, "Setting to DVD defaults");
     1493            } else if (bkpinfo->backup_media_type == usb) {
     1494                strcpy(bkpinfo->media_device, VANILLA_USB_DEVICE);
     1495                strcpy(sz_size, "512");
    14921496            } else {
    14931497                mr_allocstr(bkpinfo->media_device,VANILLA_SCSI_CDROM );
     
    14961500                log_msg(1, "Setting to CD defaults");
    14971501            }
    1498             if (bkpinfo->backup_media_type != dvd) {
     1502            if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) {
    14991503                if (!popup_and_get_string(_("Speed"), comment, tmp)) {
    15001504                    log_to_screen(_("User has chosen not to backup the PC"));
Note: See TracChangeset for help on using the changeset viewer.