Page 1 of 1
Options to save or not upon shutdown
Posted: 18 May 2023, 13:59
by stuff79
When using the boot cheatcode like "changes=EXIT:/somewhere/savefile.dat", I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.
The pros of this option is that user could choose to discard all the changes made in the current session run.
Any advice how to do that ?
Thanks.
Options to save or not upon shutdown
Posted: 18 May 2023, 14:26
by Ed_P
stuff79 wrote: ↑18 May 2023, 13:59
I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.
Yup

There is a 3 second delay and prompt when shutting down to save or not save changes.

Options to save or not upon shutdown
Posted: 18 May 2023, 15:27
by stuff79
Ed_P wrote: ↑18 May 2023, 14:26
stuff79 wrote: ↑18 May 2023, 13:59
I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.
Yup

There is a 3 second delay and prompt when shutting down to save or not save changes.
I'm new to Porteus, not awaring that there is 3 sec delay in the console.
Thanks.
Options to save or not upon shutdown
Posted: 18 May 2023, 17:36
by Ed_P
stuff79 wrote: ↑18 May 2023, 15:27
I'm new to Porteus
We all were at some point.
The prompt also shows you how full your save.dat file is and allows you to exit without saving the save.dat file if it is overflowing.

Options to save or not upon shutdown
Posted: 18 May 2023, 20:00
by Rava
Ed_P wrote: ↑18 May 2023, 14:26
There is a 3 second delay and prompt when shutting down to save or not save changes.
3 Seconds is very short, can that be changed?
E.g. to 10 seconds or 5 seconds?
Options to save or not upon shutdown
Posted: 18 May 2023, 21:38
by Ed_P
Rava wrote: ↑18 May 2023, 20:00
3 Seconds is very short, can that be changed?
If the file is too full an extra is 5 seconds it added and is in the rc.local_shutdown script. In that the decision is binary not too much time is needed.
Options to save or not upon shutdown
Posted: 26 May 2023, 03:05
by stuff79
The 3 sec time out period can be changed by modifying the /mnt/live/cleanup.
