Automatic mount at log-in on OS X

graouts on 2003-01-21T12:01:47

Yesterday Paul provided some help resolving the automatic XP share mounting at system login on OS X. I researched thing a bit further and came up with a pretty good solution with some help from my friend William Dell Wisner.

I created two shell (could/should be Perl as Robin noticed) scripts, one for login mounting the XP share and another one for logout umounting the share. Then I edited the /etc/ttys file and edited the console line to add something that looks like:

console "/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow -LoginHook /Users/antoine/Scripts/Bender_mount.sh -LogoutHook /Users/antoine/Scripts/Bender_umount.sh" vt100 on secure window=/System/Library/CoreServices/WindowServer onoption="/usr/libexec/getty std.9600"

This solved the case!

-- junior