Jump to content

Symbolic link in /Network/. Disappears after reboot.


  • Please log in to reply
1 reply to this topic

#1
-TiLT-

-TiLT-

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Location:Germany
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-

#2
-TiLT-

-TiLT-

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 209 posts
  • Location:Germany
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-





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy