Ignore:
Timestamp:
Sep 22, 2006, 1:06:49 AM (18 years ago)
Author:
Bruno Cornec
Message:

Should fix bug #21 by exporting variables from start-nfs and overriding values in mondo-rstr-tools.c with thee exports

File:
1 edited

Legend:

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

    r799 r801  
    10441044                    strcpy(bkpinfo->prefix,STD_PREFIX);
    10451045            }
     1046            /* We need to override prefix value in PXE mode as it's
     1047             * already done in start-nfs */
     1048            if (strstr(call_program_and_get_last_line_of_output
     1049               ("cat /proc/cmdline"), "pxe")) {
     1050                    strcpy(bkpinfo->prefix,getenv("imgname"));
     1051            }
     1052
    10461053        } else if (!strcmp(value, "tape")) {
    10471054            bkpinfo->backup_media_type = tape;
     
    11511158            log_msg(2, "nfs_remote_dir is %s", bkpinfo->nfs_remote_dir);
    11521159        }
     1160        /* We need to override values in PXE mode as it's
     1161         * already done in start-nfs */
     1162        if (strstr(call_program_and_get_last_line_of_output
     1163           ("cat /proc/cmdline"), "pxe")) {
     1164                strcpy(bkpinfo->nfs_mount,getenv("nfsmount"));
     1165                strcpy(bkpinfo->nfs_remote_dir,getenv("dirimg"));
     1166            }
    11531167    } else if (bkpinfo->backup_media_type == iso) {
    11541168        /* Patch by Conor Daly 23-june-2004
     
    12021216                    } else {
    12031217                        log_msg(1,
    1204                                 "You backed up to disk, then burned some CDs. Naughty monkey!");
     1218                                "You backed up to disk, then burned some CDs.");
    12051219                    }
    12061220                }
Note: See TracChangeset for help on using the changeset viewer.