How to stop tmp directory being cleared on reboot
-
Hi. I'm fighting with Amiberry and learned the hard way that it doesn't keep saved configurations. I've tried multiple solutions to get Amiberry to do what I want. My last remaining hope is to STOP the tmp directory being emptied on reboot as that's where it inexplicably saves the configuration.
I've trawled solutions online and found nothing that actually works. I just want to stop the tmp directory being emptied.
-
@UncleChuckle
/tmp
on Recalbox uses a ramdisk so its contents get lost when the power is turned off.I think the best approach would be to write simple scripts to save/restore the file(s) you want to keep to/from a location that is permanent e.g.
/recalbox/share/
. Use the Recalbox event system to trigger that script.Example:
Create/recalbox/share/userscripts/amiberry[reboot,shutdown](sync).sh
:#!/bin/sh cp /tmp/CONFIG_FILE_TO_KEEP /recalbox/share/CONFIG_FILE_TO_KEEP
And
/recalbox/share/userscripts/amiberry[start].sh
:#!/bin/sh cp /recalbox/share/CONFIG_FILE_TO_KEEP /tmp/CONFIG_FILE_TO_KEEP
-