Deleted Added
full compact
config.c (8820) config.c (8837)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: config.c,v 1.11 1995/05/28 09:31:29 jkh Exp $
7 * $Id: config.c,v 1.12 1995/05/28 20:28:07 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 153 unchanged lines hidden (view full) ---

169
170 fstab = fopen("/etc/fstab", "w");
171 if (!fstab) {
172 msgConfirm("Unable to create a new /etc/fstab file!\nManual intervention will be required.");
173 return;
174 }
175
176 /* Go for the burn */
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 153 unchanged lines hidden (view full) ---

169
170 fstab = fopen("/etc/fstab", "w");
171 if (!fstab) {
172 msgConfirm("Unable to create a new /etc/fstab file!\nManual intervention will be required.");
173 return;
174 }
175
176 /* Go for the burn */
177 msgDebug("Generating /etc/fstab file");
177 msgDebug("Generating /etc/fstab file\n");
178 for (i = 0; i < nchunks; i++) {
179 fprintf(fstab, "/dev/%s\t\t\t%s\t\t%s %s %d %d\n", nameof(chunk_list[i]), mount_point(chunk_list[i]),
180 fstype(chunk_list[i]), fstype_short(chunk_list[i]), seq_num(chunk_list[i]),
181 seq_num(chunk_list[i]));
182 }
183
184 Mkdir("/proc", NULL);
185 fprintf(fstab, "proc\t\t\t\t/proc\t\tprocfs rw 0 0\n");

--- 160 unchanged lines hidden (view full) ---

346 execl("/stand/sh", "sh", "-c", "pkg_manage", (char *)NULL);
347 exit(1);
348 }
349 else {
350 pid = waitpid(pid, (int *)&pstat, 0);
351 i = (pid == -1) ? -1 : WEXITSTATUS(pstat);
352 }
353 }
178 for (i = 0; i < nchunks; i++) {
179 fprintf(fstab, "/dev/%s\t\t\t%s\t\t%s %s %d %d\n", nameof(chunk_list[i]), mount_point(chunk_list[i]),
180 fstype(chunk_list[i]), fstype_short(chunk_list[i]), seq_num(chunk_list[i]),
181 seq_num(chunk_list[i]));
182 }
183
184 Mkdir("/proc", NULL);
185 fprintf(fstab, "proc\t\t\t\t/proc\t\tprocfs rw 0 0\n");

--- 160 unchanged lines hidden (view full) ---

346 execl("/stand/sh", "sh", "-c", "pkg_manage", (char *)NULL);
347 exit(1);
348 }
349 else {
350 pid = waitpid(pid, (int *)&pstat, 0);
351 i = (pid == -1) ? -1 : WEXITSTATUS(pstat);
352 }
353 }
354 if (i != 0)
354 if (i != 0 && isDebug())
355 msgDebug("pkg_manage returns status of %d\n", i);
356 return 0;
357}
358
359int
360configPorts(char *str)
361{
362 return 0;
363}
355 msgDebug("pkg_manage returns status of %d\n", i);
356 return 0;
357}
358
359int
360configPorts(char *str)
361{
362 return 0;
363}