Changeset 3278 in MondoRescue for branches/3.2/mondo/src/mondorestore
- Timestamp:
- Apr 30, 2014, 12:30:11 PM (11 years ago)
- Location:
- branches/3.2/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3271 r3278 267 267 strcpy(bkpinfo->isodir, "/"); 268 268 } 269 if (does_file_exist("/tmp/NETFS-SERVER-PATH")) { 269 // TODO: Are we shure it does what it's expected to do here ? 270 if (does_file_exist("/tmp/NETFS-SERVER-MOUNT")) { 270 271 strcpy(isodir_device, last_line_of_file("/tmp/NETFS-SERVER-MOUNT")); 271 272 strcpy(isodir_format, "netfs"); 272 strcpy(bkpinfo->isodir, last_line_of_file("/tmp/ NETFS-SERVER-PATH"));273 strcpy(bkpinfo->isodir, last_line_of_file("/tmp/ISO-DIR")); 273 274 } 274 275 if (nuke_me_please) { … … 276 277 } 277 278 278 if (popup_and_get_string 279 ("ISO Mode - device", "On what device do the ISO files live?", 280 isodir_device, MAX_STR_LEN / 4)) { 281 if (popup_and_get_string 282 ("ISO Mode - format", 283 "What is the disk format of the device? (Hit ENTER if you don't know.)", 284 isodir_format, 16)) { 279 if (popup_and_get_string("ISO Mode - device", "On what device do the ISO files live?", isodir_device, MAX_STR_LEN / 4)) { 280 if (popup_and_get_string ("ISO Mode - format", "What is the disk format of the device? (Hit ENTER if you don't know.)", isodir_format, 16)) { 285 281 if (popup_with_buttons("Are you restoring from an external hard drive ?", "Yes", "No")) { 286 282 HDD = TRUE; 287 283 } 288 if (popup_and_get_string 289 ("ISO Mode - path", 290 "At what path on this device can the ISO files be found ?", 291 bkpinfo->isodir, MAX_STR_LEN / 4)) { 284 if (popup_and_get_string ("ISO Mode - path", "At what path on this device can the ISO files be found ?", bkpinfo->isodir, MAX_STR_LEN / 4)) { 292 285 strip_spaces(isodir_device); 293 286 strip_spaces(isodir_format); … … 327 320 read_cfg_var(g_mondo_cfg_file, "iso-dev", g_isodir_device); 328 321 if (bkpinfo->disaster_recovery) { 329 /* Patch Conor Daly 26-june-2004 330 * Don't let this clobber an existing bkpinfo->isodir */ 322 /* Don't let this clobber an existing bkpinfo->isodir */ 331 323 if (!bkpinfo->isodir[0]) { 332 324 strcpy(bkpinfo->isodir, "/tmp/isodir"); 333 325 } 334 /* End patch */335 326 mr_asprintf(command, "mkdir -p %s", bkpinfo->isodir); 336 327 run_program_and_log_output(command, 5); … … 865 856 mr_free(bkpinfo->netfs_mount); 866 857 mr_asprintf(bkpinfo->netfs_mount, "%s", value); 867 868 read_cfg_var(cfg_file, "netfs-server-path", value); 858 if (bkpinfo->netfs_mount != NULL) { 859 log_msg(2, "netfs_mount is %s", bkpinfo->netfs_mount); 860 } 861 862 read_cfg_var(cfg_file, "iso-dir", value); 869 863 mr_free(bkpinfo->netfs_remote_dir); 870 864 mr_asprintf(bkpinfo->netfs_remote_dir, "%s", value); 871 872 if (bkpinfo->netfs_mount != NULL) {873 log_msg(2, "netfs_mount is %s", bkpinfo->netfs_mount);874 }875 865 if (bkpinfo->netfs_remote_dir != NULL) { 876 866 log_msg(2, "netfs_remote_dir is %s", bkpinfo->netfs_remote_dir); 877 867 } 868 878 869 if (bkpinfo->netfs_proto != NULL) { 879 870 log_msg(2, "netfs_proto is %s", bkpinfo->netfs_proto); … … 907 898 mr_asprintf(old_isodir, "%s", bkpinfo->isodir); 908 899 read_cfg_var(cfg_file, "iso-mnt", iso_mnt); 909 read_cfg_var(cfg_file, "iso dir", iso_path);900 read_cfg_var(cfg_file, "iso-dir", iso_path); 910 901 sprintf(bkpinfo->isodir, "%s%s", iso_mnt, iso_path); 911 902 if (!bkpinfo->isodir[0]) { -
branches/3.2/mondo/src/mondorestore/mondorestore.c
r3273 r3278 702 702 // { 703 703 if (system("umount -d /tmp/isodir 2> /dev/null")) { 704 log_to_screen 705 ("WARNING - unable to unmount device where the ISO files are stored."); 704 log_to_screen("WARNING - unable to unmount device where the ISO files are stored."); 706 705 } 707 706 // }
Note:
See TracChangeset
for help on using the changeset viewer.