Jump to content

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-

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

 Share

×
×
  • Create New...