1#include <syslinux/reboot.h> 2#include <string.h> 3 4int main(int argc, char *argv[]) 5{ 6 int warm = 0; 7 int i; 8 9 for (i = 1; i < argc; i++) { 10 if (!strcmp(argv[i], "-w") || !strcmp(argv[i], "--warm")) 11 warm = 1; 12 } 13 14 syslinux_reboot(warm); 15} 16