

I tried editing the ttys file thinking maybe the loginhook was not working in El Capitan, tested it, then reverted the ttys file when it didn't make a noticable change after restarting. Permissions are set to octal mode:755, user:root, group:staff (I wonder if it should have been wheel now or something.) I tested the scripts without logging out and in first, they seem to work. If you followed the steps correctly, your system will now play a sound every time you start or restart the computer.I liked and used a similar Login/logout script to what Pincopallino suggested on Yosemite & Maverick, but for some reason only the logout script works for me on El Capitan.

Enable the “ Play Windows Startup sound” option.Click the Sounds option and open the Sounds tab.However, Microsoft did not entirely remove the option and it was only disabled on new installations by default, which means you can still enable the startup sound by following these steps: The startup sound was ultimately turned off by default to prevent an unintended interruption when you open your laptop. With mobility came different considerations-PCs being used in places that would have been very unusual when Windows 3.1 came out, like in the bedroom or on the couch,” he added. “Most of the PCs being sold were laptops or netbooks, and that percentage was going up every year. “One of the things we did was to look at how and where people were using their PCs,” Harris explained. For example, if you’ve to work late at night during your bedroom, it’d be less-than-ideal to open up your laptop only to have it loudly play out the startup sound.

As Microsoft decided to focus on 2-in-1s, laptops, and mobile-first use cases, the company realized that startup chime on every reboot can be annoying and awkward.
