Ignore:
Timestamp:
Aug 18, 2009, 3:20:46 PM (15 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.

File:
1 edited

Legend:

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

    r2327 r2329  
    784784        }
    785785   
    786         if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "pxe")) {
     786        if (strstr(call_program_and_get_last_line_of_output("cat " CMDLINE), "pxe")) {
    787787            /* We need to override prefix value in PXE mode as it's
    788788            * already done in start-nfs */
     
    948948
    949949tmp = read_cfg_var(g_mondo_cfg_file, "please-dont-eject");
    950 if (tmp || strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "donteject")) {
     950if (tmp || strstr(call_program_and_get_last_line_of_output("cat " CMDLINE), "donteject")) {
    951951    bkpinfo->please_dont_eject = TRUE;
    952952    log_msg(2, "Ok, I shan't eject when restoring! Groovy.");
     
    977977        }
    978978    }
    979     if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "pxe")) {
     979    if (strstr(call_program_and_get_last_line_of_output("cat " CMDLINE), "pxe")) {
    980980        /* We need to override values in PXE mode as it's
    981981        * already done in start-nfs */
Note: See TracChangeset for help on using the changeset viewer.