Is there a system variable for the pup savefile?

Moderators: 666philb, Forum moderators

Post Reply
mow9902
Posts: 195
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 15 times
Been thanked: 61 times

Is there a system variable for the pup savefile?

Post by mow9902 »

I'm using Fossapup64 CE (F96_3) frugal install.

Is there a system variable somewhere which echos the name of the savefile in use?

Thanks

Burunduk
Posts: 250
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 126 times

Re: Is there a system variable for the pup savefile?

Post by Burunduk »

On Fossapup64-9.5, this information is in /etc/rc.d/PUPSTATE

In a script it could be:

Code: Select all

. /etc/rc.d/PUPSTATE

echo $PUPSAVE 
echo ${PUPSAVE##*/}

stat "/initrd/mnt/dev_save${PUPSAVE##*,}"
User avatar
amethyst
Posts: 2412
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 57 times
Been thanked: 502 times

Re: Is there a system variable for the pup savefile?

Post by amethyst »

You can check /etc/DISTRO_SPECS for names.

User avatar
mikeslr
Posts: 2952
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 910 times

Re: Is there a system variable for the pup savefile?

Post by mikeslr »

You can also note what's been used when any Puppy boots. And all recent Puppys have Menu>System>Pup-SysInfo. Opened, its Sys Specs >Profiles >Complete will identify the name of the SaveFile/Folder being used in the Distro State paragraph.

Post Reply

Return to “Fossapup64”