summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/system.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-20 23:33:14 +0000
committerphk <phk@FreeBSD.org>1995-05-20 23:33:14 +0000
commit1a410e1dc43e989b4ce83948c13a278a909ed27c (patch)
tree480e6d73ee014db828c14805fe6e669011278a52 /release/sysinstall/system.c
parent3e05eefc053d45c9931195880e1073ad471c6e36 (diff)
downloadFreeBSD-src-1a410e1dc43e989b4ce83948c13a278a909ed27c.zip
FreeBSD-src-1a410e1dc43e989b4ce83948c13a278a909ed27c.tar.gz
Now cpio works for me. (it was Mostly confusion about when the chroot
happened) Make vsystem crunch aware in an intelligent fashion. make the boot.flp target more specific (and faster).
Diffstat (limited to 'release/sysinstall/system.c')
-rw-r--r--release/sysinstall/system.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index a0092aa..4bdc8ca 100644
--- a/release/sysinstall/system.c
+++ b/release/sysinstall/system.c
@@ -276,12 +276,10 @@ systemChangeScreenmap(const u_char newmap[])
dialog_clear();
}
}
-
-#if 0
-/* Execute a command that is crunched into the same binary */
int
vsystem(char *fmt, ...)
{
+#ifdef CRUNCHED_BINARY
va_list args;
union wait pstat;
pid_t pid;
@@ -329,12 +327,7 @@ vsystem(char *fmt, ...)
msgDebug("Command `%s' returns status of %d\n", cmd, i);
free(cmd);
return i;
-}
-#else
-/* Execute a system command, with varargs */
-int
-vsystem(char *fmt, ...)
-{
+#else /* Not crunched */
va_list args;
union wait pstat;
pid_t pid;
@@ -377,5 +370,5 @@ vsystem(char *fmt, ...)
msgDebug("Command `%s' returns status of %d\n", cmd, i);
free(cmd);
return i;
-}
#endif
+}
OpenPOWER on IntegriCloud