Ignore:
Timestamp:
Aug 26, 2007, 12:26:06 PM (17 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/common/libmondo-stream.c

    r1574 r1594  
    329329    log_it("At this point, dev = %s and res = %d", dev, res);
    330330
    331     strcpy(tmp, call_program_and_get_last_line_of_output("\
    332 cdrecord -scanbus 2> /dev/null | tr -s '\t' ' ' | \
    333 grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | \
    334 awk '{for(i=1; i<NF; i++) { if (index($i, \"GB\")>0) { print $i;};};};'"));
     331    mr_asprintf(&command, "%s -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep -i TAPE | awk '{for(i=1; i<NF; i++) { if (index($i, \"GB\")>0) { print $i;};};};'", cdr_exe);
     332    strcpy(tmp, call_program_and_get_last_line_of_output(command));
     333    mr_free(command);
    335334
    336335    siz[0] = '\0';
     
    12961295        mr_asprintf(&command,
    12971296                 "cdrecord -eject dev=%s speed=%d fs=24m -waiti - >> %s 2>> %s",
    1298                  bkpinfo->media_device, bkpinfo->cdrw_speed, MONDO_LOGFILE,
     1297                 bkpinfo->iso_burning_dev, bkpinfo->writer_speed, MONDO_LOGFILE,
    12991298                 MONDO_LOGFILE);
    13001299        log_it("Opening OUT to next CD with the command");
Note: See TracChangeset for help on using the changeset viewer.