Changeset 888 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-files.c
- Timestamp:
- Oct 10, 2006, 12:47:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-files.c
r879 r888 1285 1285 log_to_screen("Found bonding device %s; looking for corresponding ethN slave device\n", nfs_dev); 1286 1286 sprintf(command, 1287 "ifconfig %s | awk '{print $5}' ", nfs_dev);1287 "ifconfig %s | awk '{print $5}' | head -n1", nfs_dev); 1288 1288 strcpy(mac_addr, call_program_and_get_last_line_of_output(command)); 1289 1289 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); 1291 1291 strcpy(nfs_dev, call_program_and_get_last_line_of_output(command)); 1292 1292 log_to_screen("Replacing it with %s\n", nfs_dev);
Note:
See TracChangeset
for help on using the changeset viewer.