Oh, and - that's the one bundled...
parent
6ed69c9df6
commit
07e60388c2
|
@ -1,8 +1,10 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <linux/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART, NULL);
|
int retval = reboot(RB_AUTOBOOT);
|
||||||
return 0;
|
if(retval != 0) perror("reboot failed");
|
||||||
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue