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 Wed 01 Oct 2014, 16:34
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 Posts_count  
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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