2012-07-07 08:08:28 +04:00
|
|
|
/*
|
|
|
|
* reboot
|
|
|
|
*
|
|
|
|
* Reboot the system.
|
|
|
|
*/
|
2012-01-27 09:11:43 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <syscall.h>
|
|
|
|
|
|
|
|
int main(int argc, char ** argv) {
|
|
|
|
if (syscall_reboot() < 0) {
|
2014-05-12 04:40:16 +04:00
|
|
|
printf("%s: permission denied\n", argv[0]);
|
2012-01-27 09:11:43 +04:00
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|