I have a script that mounts a Samba share to a folder on the desktop, it runs no problem but when its setup as a LoginHook it doesn't mount the folder.
Does anyone have a working login hook that mounts a share that they can post? Or know any issues with mounting shares during login?
This is my Script:
#!/usr/bin/env ruby
@domain="Lancaster"
@user=ARGV[0]
#@
[email protected](/\n/,"")
@userfolder="/Users/" + @user.to_s
@smbshare="//#{@user}@hercules/everyone"
system("mkdir #{@userfolder}/Desktop/everyone")
system("mount_smbfs #{@smbshare} #{@userfolder}/Desktop/everyone | #{@userfolde$
system("
/usr/bin/osascript <<-EOF
tell application \"System Events\"
activate
display dialog \"Welcome to the #{@domain} domain #{@user}\n\nY$
end tell
EOF
")