summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/modules/reboot.c
blob: a6d564747f39bca6f89880cfbcdbf9505890c3c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <syslinux/reboot.h>
#include <string.h>

int main(int argc, char *argv[])
{
    int warm = 0;
    int i;

    for (i = 1; i < argc; i++) {
	if (!strcmp(argv[i], "-w") || !strcmp(argv[i], "--warm"))
	    warm = 1;
    }

    syslinux_reboot(warm);
}