revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-unix / bootstrap / shutdown.c
blob338c76d8a796b170ff199ed24bc196f73fd80e50
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <runtime.h>
11 #include "shutdown.h"
13 #define D(x)
15 static char **Kernel_ArgV;
17 void SaveArgs(char **argv)
19 Kernel_ArgV = argv;
22 void Host_ColdBoot(void)
24 D(printf("[Bootstrap] Cold reboot, dir: %s, name: %s\n", bootstrapdir, Kernel_ArgV[0]));
25 if (chdir(bootstrapdir)==0)
26 execvp(Kernel_ArgV[0], Kernel_ArgV);
28 DisplayError("Failed to restart AROS");