These directions use Puppy 3.01. Other Puppies should be fairly similar.htnakirs wrote:...Pizza : What is this autosave daemon that you refer to and where can I disable it?
Daemon: /usr/sbin/savepuppyd
Find these lines:
Code: Select all
#only run if need to save tmpfs periodically...
SAVETMPFS="no"
[ $PUPMODE -eq 3 -o $PUPMODE -eq 7 -o $PUPMODE -eq 13 ] && SAVETMPFS="yes"
[ "$SAVETMPFS" = "no" ] && exit
Code: Select all
#only run if need to save tmpfs periodically...
SAVETMPFS="no"
#[ $PUPMODE -eq 3 -o $PUPMODE -eq 7 -o $PUPMODE -eq 13 ] && SAVETMPFS="yes"
[ "$SAVETMPFS" = "no" ] && exit
Shutdown script: /etc/rc.d/rc.shutdown
There should be a group of lines like this:
Code: Select all
13) #PDEV1 and PUPSFS and PUPSAVE
#/initrd/pup_rw has tmpfs, pup_ro1 has pup_save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
#the above are in unionfs at /.
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
;;
Code: Select all
13) #PDEV1 and PUPSFS and PUPSAVE
#/initrd/pup_rw has tmpfs, pup_ro1 has pup_save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
#the above are in unionfs at /.
dialog --yesno "Save session?" 0 0 >/dev/console
if [ $? -eq 0 ]; then
echo "Saving session to $SAVEFILE (${SAVEPART})..." >/dev/console
/usr/sbin/snapmergepuppy /initrd/pup_ro1 /initrd/pup_rw
fi
;;
Sorry for not posting this stuff last night. I was too tired.
EDIT 2009-03-18: Forgot that the dialog command must be redirected to /dev/console. Corrected instructions.