Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 02:37
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
How to save only on command?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
Karl Godt

Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 05 Sep 2013, 03:58    Post_subject:  

....mike looks around the thread for karl.......

Hi Mike !

Hmmm ... that theme had been posted a lot of times , but not recently .

Basically the solution found by other members was to set the save interval to 0 in the eventmanager gui and add few lines into /etc/rc.d/rc.shutdown

to present a dialog asking to save session or not into the save file like :

dialog --yesno "Save the trash from /initrd/pup_rw into /initrd/pup_ro1?" 0 0
if [ "$?" = 0 ] ; then

And such function needs to be called somewhere at or before

#save session...
case $PUPMODE in
3) #PDEV1.
echo "Saving session to $PDEV1..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
[ .. ]
5) #v2.02 first boot.
echo "Session not saved" >/dev/console
#ha ha, before had this, if aborted save after choosing save-partition, code
#further down wiped all of the partition (it was mntd on /tmp/savepup)...
[ ! "$SMNTPT" = "" ] && umount $SMNTPT
#...well, fixed it, changed mntpt so not in /tmp. Leave above line here.
echo "Session not saved" >/dev/console
sleep 2

or probably in every PUPMODE case .. in rc.shutdown .
Back to top
View user's profile Send_private_message Visit_website 

Joined: 23 Nov 2006
Posts: 8365

PostPosted: Thu 05 Sep 2013, 13:24    Post_subject:  

Hi karl
The day I removed snapmergepuppy was a happy one.
It does not really do the job that well and IIRC never got to do a proper ram flush either. pupmode=13 is a distant memory.

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0497s ][ Queries: 12 (0.0085s) ][ GZIP on ]