103
103
if (major(resume_device) == 0) {
104
104
bb_error_msg_and_die("invalid resume device: %s", argv[0]);
106
107
ofs = (argv[1] ? xstrtoull(argv[1], 0) : 0);
108
115
fd = xopen("/sys/power/resume", O_WRONLY);
109
s = xasprintf("%u:%u:%llu", major(resume_device), minor(resume_device), ofs);
112
119
/* if write() returns, resume did not succeed */