Changeset 903 in MondoRescue for trunk/mondo/src/common/libmondo-files.c
- Timestamp:
- Oct 25, 2006, 1:49:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-files.c
r900 r903 1109 1109 log_to_screen("Found bonding device %s; looking for corresponding ethN slave device\n", nfs_dev); 1110 1110 mr_asprintf(&command, 1111 "ifconfig %s | awk '{print $5}' ", nfs_dev);1111 "ifconfig %s | awk '{print $5}' | head -n1", nfs_dev); 1112 1112 mac_addr = call_program_and_get_last_line_of_output(command); 1113 1113 mr_asprintf(&command, 1114 "ifconfig | grep -E '%s' | head -n1 | cut -d' ' -f1", mac_addr);1114 "ifconfig | grep -E '%s' | grep -v '%s' | head -n1 | cut -d' ' -f1", mac_addr); 1115 1115 mr_free(nfs_dev); 1116 1116 nfs_dev = call_program_and_get_last_line_of_output(command);
Note:
See TracChangeset
for help on using the changeset viewer.