Jump to content
Sign in to follow this  
Followers 0
-TiLT-

Symbolic link in /Network/. Disappears after reboot.

2 posts in this topic

Recommended Posts

Hi,

 

I need to have a symbolic link in /Network/...

The link origin lies in a Mountpoint.

 

(ln -s /Mountpoint/yyy/ /Network/yyy)

 

It works fine until I reboot. Then the link is gone.

 

Played around with /etc/rc and /Library/StartupItems, but it seems they do this too early and the link is removed lateron during startup process.

 

It is important to have that for everyone that logs on.

 

Any ideas?

 

Cheers

-TiLT-

Share this post


Link to post
Share on other sites
Advertisement

Okay I found out myself.

 

I created a new StartupItem in /Library/StartupItems called Linker

 

It inclueds these files:

 

Linker (chmod 755)

StartupParameters.plist (chmod 644)

 

Linker:

#!/bin/sh

. /etc/rc.common

ln -s /Mount/path1/ /Network/path1a
ln -s /Mount/path2/ /Network/path2a

 

StartupParameters.plist

{
 Description	 = "Description";
 Provides		= ("something shorter than Description");
 Requires		= ("Network", "Disks", "NFS");
 OrderPreference = "Last";
}

 

That way I can be sure, the links are created when everything is up (Network, Disks, automounts).

 

Maybe someone else needs that.

 

Cheers

-TiLT-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

×