Changeset 2329 in MondoRescue for branches/2.2.10/mondo/src/common


Ignore:
Timestamp:
Aug 18, 2009, 3:20:46 PM (16 years ago)
Author:
Bruno Cornec
Message:

r3340@localhost: bruno | 2009-08-12 00:17:29 +0200
Improve portability by defining all cmdline usage in 1 include (/tmp for FreeBSD and /proc fior LInux). Also doing tht for scripts.

Location:
branches/2.2.10/mondo/src/common
Files:
2 edited

Legend:

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

    r2328 r2329  
    732732
    733733    if (found_it) {
    734         mr_asprintf(tmp1, "grep \"%s=ide-scsi\" /proc/cmdline &> /dev/null", strrchr(output, '/') + 1);
     734        mr_asprintf(tmp1, "grep \"%s=ide-scsi\" " CMDLINE " &> /dev/null", strrchr(output, '/') + 1);
    735735        if (system(tmp1) == 0) {
    736736            log_msg(4, "%s is not right. It's being SCSI-emulated. Continuing.", output);
  • branches/2.2.10/mondo/src/common/libmondo-tools.c

    r2328 r2329  
    745745    }
    746746    g_current_media_number = 1;
    747     bkpinfo->postnuke_tarball[0] = '\0';
    748747    return (res);
    749748}
Note: See TracChangeset for help on using the changeset viewer.