Changeset 1858 in MondoRescue
- Timestamp:
- Jan 11, 2008, 4:22:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-devices.c
r1849 r1858 2132 2132 bkpinfo->please_dont_eject = TRUE; 2133 2133 2134 /* Initiate bkpinfo pathsfrom running environment if not already done */2134 /* Initiate bkpinfo nfs_mount path from running environment if not already done */ 2135 2135 if (!bkpinfo->nfs_mount[0]) { 2136 2136 strcpy(bkpinfo->nfs_mount, 2137 2137 call_program_and_get_last_line_of_output 2138 2138 ("mount | grep \":\" | cut -d' ' -f1 | head -n1")); 2139 }2140 if (!bkpinfo->isodir[0]) {2141 strcpy(bkpinfo->isodir,2142 call_program_and_get_last_line_of_output2143 ("mount | grep \":\" | cut -d' ' -f3 | head -n1"));2144 2139 } 2145 2140 #ifdef __FreeBSD__ … … 2201 2196 } 2202 2197 } 2203 if (!is_this_device_mounted(bkpinfo->nfs_mount)) { 2198 /* Initiate bkpinfo isodir path from running environment if mount already done */ 2199 if (is_this_device_mounted(bkpinfo->nfs_mount)) { 2200 strcpy(bkpinfo->isodir, 2201 call_program_and_get_last_line_of_output 2202 ("mount | grep \":\" | cut -d' ' -f3 | head -n1")); 2203 } else { 2204 2204 sprintf(bkpinfo->isodir, "%s/nfsdir", bkpinfo->tmpdir); 2205 2205 sprintf(command, "mkdir -p %s", bkpinfo->isodir);
Note:
See TracChangeset
for help on using the changeset viewer.