Home Forums OS X Server and Client Discussion Questions and Answers Getting SMB shares to mount from /Library/StartupItems

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #369377
    cre
    Participant

    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

    #369459
    Acidprime
    Participant

    You might do this with launchd instead, you might try my post code on the [url=http://forums.bombich.com/viewtopic.php?t=9694]following thread[/url] on bombich’s forums.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed