How does Puppy detect it has a pupsave folder[SOLVED]

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

How does Puppy detect it has a pupsave folder[SOLVED]

#1 Post by musher0 »

Hello all.

ATTS:

How does Puppy detect it has a pupsave folder rather than a pupsave file?

TIA
Last edited by musher0 on Tue 10 Apr 2018, 02:20, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Great. Nobody knows. :o
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#3 Post by mistfire »

@musher0 in init script it just uses ls command to check if the pupsave exists and checks if it is a folder or file as simple as that.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

Ah. Many thanks, mistfire.

Meanwhile, I found another way to find out: if the user has a save folder,
/initrd/pup_rw is a symlink to it; whereas if (s)he has a save file,
/initrd/pup_rw exists as a "real" directory, with "real" files in it.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#5 Post by mistfire »

Or just read the pupmode number in /etc/rc.d/PUPSTATE

if the pupmode is 5 then it is in pristine state, no save files is loaded

User avatar
drunkjedi
Posts: 882
Joined: Mon 25 May 2015, 02:50

#6 Post by drunkjedi »

mistfire wrote:Or just read the pupmode number in /etc/rc.d/PUPSTATE

if the pupmode is 5 then it is in pristine state, no save files is loaded
What's the pupmode for savefolder? Is it different than savefile?

mostly_lurking
Posts: 328
Joined: Wed 25 Jun 2014, 20:31

#7 Post by mostly_lurking »

drunkjedi wrote:What's the pupmode for savefolder? Is it different than savefile?
It seems to be the same. I posted the content of a PUPSTATE file from a Puppy using a savefile on a HDD here as an example for someone who had trouble figuring out their own setup, and the person supplied their own file which showed that a save folder was being used; they both had pupmode 12. Saves on a USB device have pupmode 13 if I remember correctly, and multisession CDs have 77.

hamoudoudou

usb is 13.

#8 Post by hamoudoudou »

usb is 13.
Attachments
rw.jpg
rw is for changes during the session
(61.53 KiB) Downloaded 104 times
Last edited by hamoudoudou on Tue 24 Apr 2018, 03:08, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#9 Post by musher0 »

People?

As I said above, you do not need to overload your neurones wondering what
the PUPMODE is!!!

If /initrd/pup_rw is a symlink, you have a pupsave folder; if /initrd/pup_rw
exists as a "real" directory, you have a pupsave file.

Code: Select all

[ "`ls -Algod /initrd/pup_rw | grep drw`" ] && echo -e "\n\tYou have a pupsave FILE." || echo -e "\n\tYou have a pupsave FOLDER."
BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

hamoudoudou

it's an info for people coming from Linux..

#10 Post by hamoudoudou »

it's an info for people coming from Linux.. Puppy users are used to pupsave, Dogs still repodruce multisession DVD RW process.. I use Dogs, and tremendous cheatcodes (pupsaves)..
Sure Puppy has been using pupsave for years. If there is something to improve, it's Dogs process.. perhaps that is the reason why they choose Puppy Linux forum to develop their Live CDs.. to get inspired..
PUPMODE 13 :
Pupsave don't need to create Linux partition.. Pupsave is an .2fs 3fs 4fs that can be inserted in FAT partition !!!
pupave is the first thing you learn when coming to Puppy from Windows.. of course We did not try windows process to testing Puppy Linux.. Linux coming to Puppy try to make it come back to vintage process.. (Grub2 is obsolete compared to Grub4dos). just look at menu.lst for Puppy and menu.lst for Dogs.. No need to precise where to go to find pupsave, pupsave is beside main sfs, in Fat32 formattted pendrive

# Frugal installed Puppy

title Puppy tahr64 6.0.5 (sdb1/Tahrpup64)
find --set-root --ignore-floppies --ignore-cd /Tahrpup64/initrd.gz
kernel /Tahrpup64/vmlinuz psubdir=Tahrpup64 pmedia=usbflash pfix=fsck
initrd /Tahrpup64/initrd.gz

title Puppy precise 5.4.1.1 (sdb1/ETP)
find --set-root --ignore-floppies --ignore-cd /ETP/initrd.gz
kernel /ETP/vmlinuz psubdir=ETP pmedia=usbflash pfix=fsck
initrd /ETP/initrd.gz
Attachments
capture27847.jpg
Puppy running in Windows Seven harddisk NTFS partionned (LICK)
(13.72 KiB) Downloaded 119 times

hamoudoudou

about initrd rw :

#11 Post by hamoudoudou »

Save folder... i don't know.. I did not study yet.. In fact pupsave is a container of save folder..
study here bigpup to ...drunkjedi
Which boot parameter will load savefile/folder totally in RAM?
There is none.
Doing the adrv, as suggested above, is probably the easiest thing to do.
Last edited by bigpup on Wed 08 Feb 2017, 02:42; edited 1 time in total

Post Reply