diff options
Diffstat (limited to 'package/cryptinit/src/p.c')
-rw-r--r-- | package/cryptinit/src/p.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/cryptinit/src/p.c b/package/cryptinit/src/p.c new file mode 100644 index 000000000..b061ea7df --- /dev/null +++ b/package/cryptinit/src/p.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <sys/reboot.h> +#include <sys/types.h> +#include <sys/wait.h> +#include <unistd.h> + +int main() { + int pid; + + sync(); + if((pid=fork()) == 0) { + reboot(0x4321fedc); + _exit(0); + } + waitpid(pid, NULL, 0); + return(0); +} |