Ignore:
Timestamp:
Oct 20, 2007, 2:47:12 PM (17 years ago)
Author:
Bruno Cornec
Message:

First attempt to integrate USB support in mondoarchive (may not compile)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c

    r1659 r1687  
    551551    }
    552552
     553    if (flag_set['U'])          // USB
     554    {
     555        if (! flag_set['d']) {
     556            fatal_error
     557                ("You need to specify a device file with -d for bootable USB device creation");
     558        }
     559        if (!flag_set['s']) {
     560            fatal_error("You did not specify a size (-s) for your USB device. Aborting");
     561        }
     562    }
     563
    553564    if (flag_set['r'])          // DVD
    554565    {
     
    613624            }
    614625        }
    615     } else {                    /* CD size */
     626    } else {                    /* CD|USB size */
    616627        if (flag_set['s']) {
    617628            if (process_the_s_switch(flag_val['s'])) {
     
    663674    if (flag_set['w']) {
    664675        bkpinfo->backup_media_type = cdrw;
     676    }
     677    if (flag_set['U']) {
     678        bkpinfo->backup_media_type = usb;
    665679    }
    666680    if (flag_set['z']) {
     
    10271041    while ((opt =
    10281042            getopt(argc, argv,
    1029                    "0123456789A:B:C:DE:FGHI:J:K:LNOP:QRS:T:VWb:c:d:ef:gik:l:mn:op:rs:tuw:x:z"))
     1043                   "0123456789A:B:C:DE:FGHI:J:K:LNOP:QRS:T:UVWb:c:d:ef:gik:l:mn:op:rs:tuw:x:z"))
    10301044           != -1) {
    10311045        if (opt == '?') {
Note: See TracChangeset for help on using the changeset viewer.