Ignore:
Timestamp:
Jan 14, 2009, 10:05:17 PM (12 years ago)
Author:
Bruno Cornec
Message:

When forcing a USB device through Boot CLI, mondorestore is now taking it in account as the restore deveice, instead of taking what is in the conf file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c

    r2110 r2127  
    854854        bkpinfo->media_size[1] = 650;   /* good guess */
    855855    } else if (bkpinfo->backup_media_type == usb) {
    856         if (read_cfg_var(cfg_file, "usb-dev", value)) {
    857             fatal_error("Cannot get USB device name from cfg file");
     856        envtmp1 = getenv("MRUSBDEV");
     857        if (envtmp1 == NULL) {
     858            if (read_cfg_var(cfg_file, "usb-dev", value)) {
     859                fatal_error("Cannot get USB device name from cfg file");
     860            }
     861        } else {
     862            strcpy(value,envtmp1);
    858863        }
    859864        sprintf(bkpinfo->media_device, "%s1", value);
Note: See TracChangeset for help on using the changeset viewer.