Correct the file that reboot -k creates so that it works with the new
nextboot functionality. Reviewed by: jake (mentor)
This commit is contained in:
parent
4b5c89df31
commit
e13f727e6b
@ -125,6 +125,7 @@ main(int argc, char *argv[])
|
||||
if (kflag) {
|
||||
fd = open("/boot/nextboot.conf", O_WRONLY | O_CREAT, 0444);
|
||||
if (fd > -1) {
|
||||
(void)write(fd, "nextboot_enable=\"YES\"\n", 22);
|
||||
(void)write(fd, "kernel=\"", 8L);
|
||||
(void)write(fd, kernel, strlen(kernel));
|
||||
(void)write(fd, "\"\n", 2);
|
||||
|
Loading…
Reference in New Issue
Block a user