Friday, April 29, 2011

Puppy Linux

Puppy Linux

***How to Make Puppy Linux*** ask whether saving the session or not when we are powering off:

---
1. Edit "/etc/rc.d/rc.shutdown
2. Find these lines, and add new lines inside the configuration file :

#/initrd/pup_rw has tmpfs, pup_ro1 has ${DISTRO_FILE_PREFIX}save.2fs file (PUPSAVE), pup_ro2 has PUPSFS file.
#the above are in unionfs at /.
dialog --yesno "Save this 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
;;

3. After you restart your pc next time, you will probably got a message like "X seems to have exited uncleanly the last time .....", and this means you didn't shutdown your PC properly last time. Just ignore this message, and there is no damage to your PC. Finished.
---

No comments:

Post a Comment