Automount a network drive

From AwkwardTV
Revision as of 12:01, 6 July 2007 by Galphanet (talk | contribs) (New page: First, thanks to Azral ! The solution is to create a startupitem in /Library/StartupItems/ First of - create a catalog (in this case named "MountShit" but a name of your c...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First, thanks to Azral !

The solution is to create a startupitem in /Library/StartupItems/

First of - create a catalog (in this case named "MountShit" but a name of your choosing chould suffice - rename files/parameters if you change name) containing two files:

File MountShit containing:

#!/bin/sh
/usr/sbin/shlight '//Storage/DISK 2' /Users/frontrow/Movies/disk -U pcguest -P pcguest 

File StartupParameters.plist containing:


{
  Description = "MountShit";
  Provides = ("Mounts");
  Requires = ("Network");
  OrderPreference = "None";
}

Don't forget to sudo chmod +x MountShit. (:

And thats about it! Now it mounts my share(s) on startup.