Ignore:
Timestamp:
Dec 2, 2005, 8:22:32 PM (18 years ago)
Author:
bcornec
Message:
  • Bug on USB keyboard corrected
  • PXE mode reviewed (netmask and route management added in start-nfs)
  • -p option with PXE doesn't require a parameter anymore and it now works with the parameter
  • -p option should work correctly with iso and nfs modes
  • cosmetic messages improvement for mindi
  • use STD_PREFIX
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mondo/mondo/common/libmondo-tools.c

    r128 r148  
    826826        write_one_liner_data_file(tmp, iso_path);
    827827        log_it("isodir: %s", iso_path);
     828        sprintf(tmp, "%s/ISO-PREFIX", bkpinfo->tmpdir);
     829        write_one_liner_data_file(tmp, bkpinfo->prefix);
     830        log_it("iso-prefix: %s",  bkpinfo->prefix);
    828831
    829832/* End patch */
     
    969972        strcpy(bkpinfo->isodir, "/root/images/mondo");
    970973    }
    971     strcpy(bkpinfo->prefix, "mondorescue");
     974    strcpy(bkpinfo->prefix, STD_PREFIX);
    972975
    973976    bkpinfo->scratchdir[0] = '\0';
     
    12611264        return (0);
    12621265    } else {
    1263         sprintf(command, "cat %s | grep \"%s .*\" | cut -d' ' -f2,3,4,5",
    1264                 config_file, label);
     1266        sprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5",
     1267                label, config_file);
    12651268        strcpy(value, call_program_and_get_last_line_of_output(command));
    12661269        if (strlen(value) == 0) {
     
    14771480           ("mktemp -q /tmp/mojo-jojo.blah.XXXXXX"));
    14781481    if (does_file_exist(config_file)) {
    1479         sprintf(command, "cat %s | grep -vx \"%s .*\" > %s", config_file,
    1480                 label, tempfile);
     1482        sprintf(command, "grep -vx '%s .*' %s > %s",
     1483                label, config_file, tempfile);
    14811484        paranoid_system(command);
    14821485    }
Note: See TracChangeset for help on using the changeset viewer.