Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 10:21
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Symlink USB drive in home.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
moonskin

Joined: 18 Oct 2008
Posts: 40
Location: Wollongong, Australia

PostPosted: Sun 19 May 2013, 07:55    Post subject:  Symlink USB drive in home.  

Hi

I've remastered Precise 5.5 for a specific task that involves a java application and I have a small problem that I need some advice about. (I need this to run from a live CD.)

Basically, the java application loads an XML file which describes a pipe organ. That's fine if the organ file has been mastered in to the CD, but if it is just sitting on a USB drive, the user has to navigate to the mount point to see the files on the USB drive - and most users will not know how to do this.

What I'm thinking about is the feasibility of having pup_event_frontend_d create a symlink in /home to the usb drive mount point when it creates the pinboard entry and remove the symlink when the pinboard entry is removed. This means the users will see the symlink when they use the open function in the application and can go straight to the drive.

I guess my questions are:
1. Is this a reasonable idea?
2. Is this the best place to handle it?
3. Is there an existing solution for this?
4. Am I mad?

Regards
Graham
Back to top
View user's profile Send private message 
moonskin

Joined: 18 Oct 2008
Posts: 40
Location: Wollongong, Australia

PostPosted: Mon 20 May 2013, 19:05    Post subject:  

I've got this working now for a frugal install. Just need to work out what to do for a live CD.

In /sbin/pup_event_frontend_d following the code that creates the pinborard entry (add_pinboard_func())
Code:
...</env:Envelope>"  | rox -R


I added
Code:
ln -s /mnt/${ONEDRVNAME} /root   #create symlink in /root to drive's mount point
mv /root/${ONEDRVNAME} /root/Extrnl_Drive_${ONEDRVNAME}  #rename the link


There is also
Code:
rm -f /root/Extrnl_Drive_${ONEDRVNAME}
added at the end of remove_pinboard_func()

Regards
Graham
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 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.0441s ][ Queries: 12 (0.0032s) ][ GZIP on ]