Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Mute the startup sound using a logout hook' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mute the startup sound using a logout hook
Authored by: MVasilakis on Oct 27, '03 09:50:14AM

Could we make a logout directory and hook to that directory?

sudo defaults write com.apple.loginwindow LogoutHook /usr/local/bin/logout/*



[ Reply to This | # ]
Mute the startup sound using a logout hook
Authored by: kirbysdl on Feb 05, '04 03:46:40PM
I don't think that would work, but you can have your logouthook script run everything in a given directory...
for i in /some/directory/* ; do
  if [ -x "$i" ]; then
    . $i
  fi
done
Keep in mind that all of the executable scripts in the targetted directory will be run as root, so be careful who can write into this directory and know what's inside.

[ Reply to This | # ]