Ignore:
Timestamp:
Oct 1, 2007, 2:12:54 PM (13 years ago)
Author:
Bruno Cornec
Message:

handle 2 new conf file parameters

File:
1 edited

Legend:

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

    r1670 r1671  
    743743    bkpinfo->kernel_path = tmp;
    744744
    745     bkpinfo->boot_loader = '\0';
     745    if (strcmp(mr_conf->boot_loader,"LILO") == 0) {
     746        bkpinfo->boot_loader = 'L';
     747    } else if (strcmp(mr_conf->boot_loader,"GRUB") == 0) {
     748        bkpinfo->boot_loader = 'G';
     749    } else if (strcmp(mr_conf->boot_loader,"ELILO") == 0) {
     750        bkpinfo->boot_loader = 'E';
     751    } else if (strcmp(mr_conf->boot_loader,"RAW") == 0) {
     752        bkpinfo->boot_loader = 'R';
     753    } else if (strcmp(mr_conf->boot_loader,"DD") == 0) {
     754        bkpinfo->boot_loader = 'D';
     755    } else if (strcmp(mr_conf->boot_loader,"BOOT0") == 0) {
     756        bkpinfo->boot_loader = 'B';
     757    } else if (strcmp(mr_conf->boot_loader,"NATIVE") == 0) {
     758        bkpinfo->boot_loader = '\0';
     759    } else{
     760        mr_msg("Boot Loader %s unknown\n",mr_conf->boot_loader);
     761        fatal_error("Unknown Boot Loader in conf file");
     762    }
    746763    bkpinfo->boot_device[0] = '\0';
    747764    bkpinfo->zip_exe[0] = '\0';
Note: See TracChangeset for help on using the changeset viewer.