Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Mon 10 Aug 2020, 05:23
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to report name of savefile/folder in use-Solved
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
mow9902

Joined: 26 Nov 2008
Posts: 187

PostPosted: Tue 31 Dec 2019, 18:57    Post subject:  How to report name of savefile/folder in use-Solved
Subject description: Can this be done by script?
 

I am using bionicpup64

I have several savefolders - generally a "prod" folder, and one or more "test" folders where I experiment.

I'd like to be able to display the name of which savefolder is actually in use on the screen, so I don't accidentally make changes in the "prod" environment thinking I'm actually using one of the "test" savefolders.

Is the name of the savefolder in use stored anywhere within the system so I can extract it with a script and display on the screen?

Last edited by mow9902 on Tue 31 Dec 2019, 20:18; edited 1 time in total
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 1258

PostPosted: Tue 31 Dec 2019, 19:14    Post subject:  

I think it's in /etc/rc.d/PUPSTATE

The PUPSAVE line ..

So ..
Code:
cat /etc/rc.d/PUPSTATE | grep PUPSAVE

Would show the location

Last edited by jafadmin on Tue 31 Dec 2019, 19:18; edited 1 time in total
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2626

PostPosted: Tue 31 Dec 2019, 19:18    Post subject: Re: How to report name of savefile/folder in use
Subject description: Can this be done by script?
 

mow9902 wrote:
I am using bionicpup64

I have several savefolders - generally a "prod" folder, and one or more "test" folders where I experiment.

I'd like to be able to display the name of which savefolder is actually in use on the screen, so I don't accidentally make changes in the "prod" environment thinking I'm actually using one of the "test" savefolders.

Is the name of the savefolder in use stored anywhere within the system so I can extract it with a script and display on the screen?


I thought the info was in /etc/DISTRO_SPECS

but I don't see it in dpup buster64. If I look in /initrd though I see a symlink called "pup_rw" that points to the save file. For instance on my system the symlink is pointing to:
Code:

/initrd/mnt/dev_save/dpup_buster/1-07092019//dpupbuster64save

/initrd/mnt/dev_save is the partition that the savefile is on. You can see this marked when you open pmount. The double slash is just due to an error in my menu.list file, but it doesn't cause any problems.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
mow9902

Joined: 26 Nov 2008
Posts: 187

PostPosted: Tue 31 Dec 2019, 20:17    Post subject:  

Yep - I see it in /etc/rc.d/PUPSTATE

thanks for the help.
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 1258

PostPosted: Tue 31 Dec 2019, 20:20    Post subject:  

mow9902 wrote:
Yep - I see it in /etc/rc.d/PUPSTATE

thanks for the help.


FYI, that's kind of a universal puppy thing. They all have it ..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0323s ][ Queries: 11 (0.0058s) ][ GZIP on ]