Post here if you are a new Porteus member and you're looking for some help.
-
stuff79
- White ninja

- Posts: 7
- Joined: 18 May 2023, 08:59
- Distribution: 5.0
Post#1
by stuff79 » 18 May 2023, 13:59
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.
stuff79
-
Ed_P
- Contributor

- Posts: 8956
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#2
by Ed_P » 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.

Ed_P
-
stuff79
- White ninja

- Posts: 7
- Joined: 18 May 2023, 08:59
- Distribution: 5.0
Post#3
by stuff79 » 18 May 2023, 15:27
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.
stuff79
-
Ed_P
- Contributor

- Posts: 8956
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#4
by Ed_P » 18 May 2023, 17:36
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.

Ed_P
-
Rava
- Contributor

- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#5
by Rava » 18 May 2023, 20:00
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?
Cheers!
Yours Rava
Rava
-
Ed_P
- Contributor

- Posts: 8956
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#6
by Ed_P » 18 May 2023, 21:38
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.
Ed_P
-
stuff79
- White ninja

- Posts: 7
- Joined: 18 May 2023, 08:59
- Distribution: 5.0
Post#7
by stuff79 » 26 May 2023, 03:05
The 3 sec time out period can be changed by modifying the /mnt/live/cleanup.

stuff79