/** * Minimal reboot binary * * Build with: * gcc minreboot.c -o minreboot -static -s */ #include #include #include int main(int argc, char *argv[]) { int retval = reboot(RB_AUTOBOOT); if(retval != 0) perror("reboot failed"); return retval; }