Changeset 1738 in MondoRescue for branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Oct 30, 2007, 3:24:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c
r1736 r1738 691 691 bkpinfo->isodir, bkpinfo->prefix, g_current_media_number, MNT_CDROM); 692 692 #endif 693 } else if (strstr(bkpinfo->media_device, "/dev/")) { 693 } else if (bkpinfo->backup_media_type == usb) { 694 sprintf(mount_cmd, "mount -r %s %s", bkpinfo->media_device, MNT_CDROM); 695 } else if (strstr(bkpinfo->media_device, "/dev/")) { 694 696 #ifdef __FreeBSD__ 695 697 sprintf(mount_cmd, "mount_cd9660 -r %s %s", bkpinfo->media_device, … … 708 710 } 709 711 710 if (bkpinfo->backup_media_type == usb) {711 sprintf(mount_cmd, "mount -r %s %s", bkpinfo->media_device, MNT_CDROM);712 } else {713 712 #ifdef __FreeBSD__ 714 715 713 sprintf(mount_cmd, "mount_cd9660 -r %s %s", bkpinfo->media_device, 714 MNT_CDROM); 716 715 #else 717 718 716 sprintf(mount_cmd, "mount %s -t iso9660 -o ro %s", 717 bkpinfo->media_device, MNT_CDROM); 719 718 #endif 720 719 }
Note:
See TracChangeset
for help on using the changeset viewer.