Changeset 1500 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Jun 9, 2007, 2:05:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1419 r1500 1434 1434 newtSuspend(); 1435 1435 } 1436 mr_asprintf(&tmp, " %s " MNT_RESTORING "/etc/fstab", editor);1436 mr_asprintf(&tmp, "chroot %s %s /etc/fstab", MNT_RESTORING, editor); 1437 1437 paranoid_system(tmp); 1438 1438 mr_free(tmp); 1439 1439 1440 mr_asprintf(&tmp, " %s " MNT_RESTORING "/etc/grub.conf", editor);1440 mr_asprintf(&tmp, "chroot %s %s /etc/grub.conf", MNT_RESTORING, editor); 1441 1441 paranoid_system(tmp); 1442 1442 mr_free(tmp); … … 2123 2123 mr_free(tmp); 2124 2124 2125 mr_asprintf(&command, "mount /dev/fd0u1722 %s", mountpt); 2126 mr_asprintf(&tmp, 2125 mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output("dmesg | grep -i floppy")); 2126 if (strcmp(tmp, "")) { 2127 mr_asprintf(&command, "mount /dev/fd0u1722 %s", mountpt); 2128 mr_asprintf(&tmp, 2127 2129 "(sleep 15; kill `ps | grep \"%s\" | cut -d' ' -f1` 2> /dev/null) &", 2128 2130 command); 2129 mr_msg(1, "tmp = '%s'", tmp); 2130 system(tmp); 2131 mr_free(tmp); 2132 2133 res = run_program_and_log_output(command, FALSE); 2134 mr_free(command); 2135 2136 if (res) { 2137 mr_asprintf(&command, "mount /dev/fd0H1440 %s", mountpt); 2131 mr_msg(1, "tmp = '%s'", tmp); 2132 system(tmp); 2133 mr_free(tmp); 2134 2138 2135 res = run_program_and_log_output(command, FALSE); 2139 2136 mr_free(command); 2137 2138 if (res) { 2139 mr_asprintf(&command, "mount /dev/fd0H1440 %s", mountpt); 2140 res = run_program_and_log_output(command, FALSE); 2141 mr_free(command); 2142 } 2143 } else { 2144 res = 1; 2140 2145 } 2141 2146 if (res) {
Note:
See TracChangeset
for help on using the changeset viewer.