Skip to content

Commit a4bbf06

Browse files
committed
save last OPK for instant_play
Signed-off-by: Michel-FK <[email protected]>
1 parent 1396aaa commit a4bbf06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

opkrun.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,12 @@ int main(int argc, char **argv)
411411
return EXIT_FAILURE;
412412
}
413413

414+
FILE *opk_fp = fopen("/mnt/last_opk", "w");
415+
if (opk_fp != NULL) {
416+
fputs(opk_name, opk_fp);
417+
fclose(opk_fp);
418+
}
419+
414420
/* move back to OPK_MOUNTPOINT folder */
415421
chdir(OPK_MOUNTPOINT);
416422

0 commit comments

Comments
 (0)