blob: 2138078398cf9fe2e34a7d0ad83bba70faae03a4 [file] [log] [blame]
/*
* Handle resume from suspend-to-disk
*/
#include <stdio.h>
#include <stdlib.h>
#include "resume.h"
char *progname;
static __noreturn usage(void)
{
fprintf(stderr, "Usage: %s /dev/<resumedevice> [offset]\n", progname);
exit(1);
}
int main(int argc, char *argv[])
{
progname = argv[0];
if (argc < 2 || argc > 3)
usage();
return resume(argv[1], (argc > 2) ? strtoull(argv[2], NULL, 0) : 0ULL);
}