Changeset 888 in MondoRescue for branches/stable/mondo/mondo/common


Ignore:
Timestamp:
Oct 10, 2006, 12:47:14 AM (18 years ago)
Author:
Bruno Cornec
Message:
  • Build process improved following 2.2.0 delivery
  • Announce of 2.2.0
  • On mandriva we need a BuildRequire on glibc-static-devel for mindi-busybox
  • Fix again a remaining bug on #25 (Thanks Michael Shapiro again !)
File:
1 edited

Legend:

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

    r879 r888  
    12851285        log_to_screen("Found bonding device %s; looking for corresponding ethN slave device\n", nfs_dev);
    12861286        sprintf(command,
    1287                 "ifconfig %s | awk '{print $5}'", nfs_dev);
     1287                "ifconfig %s | awk '{print $5}' | head -n1", nfs_dev);
    12881288        strcpy(mac_addr, call_program_and_get_last_line_of_output(command));
    12891289        sprintf(command,
    1290                 "ifconfig | grep -E '%s' | grep -v '%s' | head -n1 | cut -d' ' -f1", mac_addr,nfs_dev );
     1290                "ifconfig | grep -E '%s' | grep -v '%s' | head -n1 | cut -d' ' -f1", mac_addr,nfs_dev);
    12911291        strcpy(nfs_dev, call_program_and_get_last_line_of_output(command));
    12921292        log_to_screen("Replacing it with %s\n", nfs_dev);
Note: See TracChangeset for help on using the changeset viewer.