Is there a system variable for the pup savefile?

Moderators: 666philb, Forum moderators

Post Reply
mow9902
Posts: 179
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 13 times
Been thanked: 54 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: 249
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 124 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: 2368
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 489 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: 2915
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 175 times
Been thanked: 893 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”