Tinyhalt can't call REBOOT as PM can't deal with that any more.
This commit is contained in:
parent
9e1428fb91
commit
fb8c7e6fca
@ -16,6 +16,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int flag;
|
int flag;
|
||||||
char *prog;
|
char *prog;
|
||||||
|
char *reboot_code = "delay; boot";
|
||||||
|
|
||||||
/* Try to run the real McCoy. */
|
/* Try to run the real McCoy. */
|
||||||
#if __minix_vmd
|
#if __minix_vmd
|
||||||
@ -28,7 +29,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
sleep(2); /* Not too fast. */
|
sleep(2); /* Not too fast. */
|
||||||
|
|
||||||
reboot(strcmp(prog, "reboot") == 0 ? RBT_REBOOT : RBT_HALT);
|
reboot(strcmp(prog, "reboot") == 0 ? RBT_MONITOR : RBT_HALT,
|
||||||
|
reboot_code, strlen(reboot_code));
|
||||||
|
|
||||||
write(2, "reboot call failed\n", 19);
|
write(2, "reboot call failed\n", 19);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user