2 Copyright 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Reboot CLI command
9 /******************************************************************************
25 It reboots the machine
29 COLD -- tells to perform cold (complete) reboot of the machine.
30 Otherwise only AROS is restarted.
34 Any programs and data in memory will be lost and all disk
35 activity will cease. Make sure no disk access is being
36 carried out by your computer.
43 ******************************************************************************/
46 #include <exec/tasks.h>
47 #include <proto/dos.h>
48 #include <proto/exec.h>
49 #include <proto/graphics.h>
58 rda
= ReadArgs("COLD/S", &cold
, NULL
);
62 PrintFault(IoErr(),"Reboot");
68 ShutdownA(SD_ACTION_COLDREBOOT
);
72 /* If we are here, shutdown did not work for some reason */
74 PutStr("This action is not supported\n");