How true, mikeb!
Just a caution to anyone else who does the above:
This worked, but it somehow disabled rc.shutdown's asktosave function, which ceased working as soon as I created the above script.
So it might be an either/or proposition in tahrpup: either you can have a "not save" script with icon on the desktop, or you can use built-in asktosave, but not both!
I'm just kind of weighing which I prefer.
Thanks everyone!
Shutdown without updating savefile. Alternative method
Yes, the quickdown script does not use rc.shutdown at all - it just uses busybox to drive the shutdown (with Musher0's additional steps to handle drive unmounting). It is just a method for a user who has already made the decision that they do not want to save (and therefore does not want a further 'ask-to-save' question)dcc701 wrote:This worked, but it somehow disabled rc.shutdown's asktosave function,
The other method listed on page 1 involves changes to rc.shutdown but as you pointed out the shutdown functionality has all been changed in tahrpup so the method would have to be modified to accommodate the new style of rc.shutdown. Unfortunately I don't feel competent to make such changes as I have so far avoided the recent "save to file" and "asktosave" developments in favour of not running a savefile at all. (I currently use a personalised sfs instead - which does not retain daily 'saved' changes at all)
I may eventually get up to speed with the modern pups and the new shutdown methods but probably later rather than sooner.
Yes its all a bit obsolete to me too...been using a save sfs for years ..though that DOES save changes. I have had save folder too but never use it with puppy for other reasons plus its my scripts so different anyway.
Such fast shutdown only come into play if I manage to make the system go crosseyed experimenting
I suppose choosing the fast shutdown would effectively be the choice and not saving is part of that...
mike
Such fast shutdown only come into play if I manage to make the system go crosseyed experimenting
I suppose choosing the fast shutdown would effectively be the choice and not saving is part of that...
mike
rc.shutdown mod for tahrpup 6.0.2
If you want to implement the original concept in Tahrpup 6.0.2, try the following:
In rc.shutdown replacewithLater code only does a save if this 'asktosave_func' returns 0
Note: Use at your own risk. It's not tested since I usually run in PUPMODE=12, and this code does not apply.
gyro
In rc.shutdown replace
Code: Select all
if [ "$ASKTOSAVE" = "false" ]; then
RETVAL=0
else
Code: Select all
if [ "$ASKTOSAVE" = "false" ]; then
#If "No_save" flag file exists set RETVAL so save is avoided
if [ -f "/tmp/No_save" ]; then
RETVAL=1
else
RETVAL=0
fi
else
Note: Use at your own risk. It's not tested since I usually run in PUPMODE=12, and this code does not apply.
gyro