AFP548

Getting SMB shares to mount from /Library/StartupItems

I am trying to get an SMB share to mount from /Library/StartupItems. I have wrote a script that works when executed from the terminal but it will not run from /Library/StartupItems. I think the problem is with the dependncies for the mount_smbfs command that are specified in the "StartupParameters.plist". If I comment out that string the script will run and just create the directory in /Volumes. Any help would be appriciated. Here is the .plist and the script that live in /Libary/StartupItems/smbmounter The script: #!/bin/sh . /etc/rc.common #Makes the directory that the SMB share will mount to mkdir /Volumes/smbshare #Mounts the SMB share to the /Volumes/qube directory mount_smbfs -W domain //user:pass@server/share /Volumes/smbshare exit 0 The StartupItems.plist is calling Requires Network System Log
Exit mobile version