Skip to content

Instantly share code, notes, and snippets.

@carlosmcevilly
Created September 28, 2012 05:06
Show Gist options
  • Save carlosmcevilly/3798024 to your computer and use it in GitHub Desktop.
Save carlosmcevilly/3798024 to your computer and use it in GitHub Desktop.
eliminate the Mac power-on sound
Install these scripts to eliminate the Mac boot sound.
These are tested on systems up to Snow Leopard. Not yet
tested on Lion or Mountain Lion.
How to use this:
1. save mute-on.sh, mute-off.sh, and install-boot-muter.sh
2. move the first two into your ~/Library/Scripts directory
sudo mv mute-{on,off}.sh ~/Library/Scripts/
(You should get prompted for your password. If you
aren't an administrator on the computer, you'll get
prompted for an administrator's userid and password.)
3. make the two mute scripts executable:
sudo chmod +x Library/Scripts/mute-{on,off}.sh
4. Make install-boot-muter.sh executable:
sudo chmod +x install-boot-muter.sh
5. Run the installer:
./install-boot-muter.sh
6. reboot to see if it worked.
#!/bin/bash
cd
export myhomepath=`pwd`
sudo defaults write com.apple.loginwindow LoginHook $myhomepath/Library/Scripts/mute-off.sh
sudo defaults write com.apple.loginwindow LogoutHook $myhomepath/Library/Scripts/mute-on.sh
#!/bin/bash
osascript -e 'set volume without output muted'
#!/bin/bash
osascript -e 'set volume with output muted'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment