Author Topic: Shutdown tone through internal speaker  (Read 404 times)

terrigan

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Shutdown tone through internal speaker
« on: February 23, 2015, 07:23:03 pm »
Any way to rig up a noise prior to computer power off through internal speaker for headless Zentyal machines?

Edit: Well i figured it out myself mostly, borrowed bits from https://myubuntublog.wordpress.com/tag/shutdown-sound/
 
sudo apt-get install beep
chmod o+x 'which beep'
*quick test and beep plays through internal speaker*
sudo nano /etc/init.d/K99shutdownsound.sh
#!/bin/sh
beep -f 300.7 -r 2 -d 100 -l 400
*save it*
chmod +x /etc/init.d/K99shutdownsound.sh
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc0.d/K99shutdownsound.sh
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc6.d/K99shutdownsound.sh
« Last Edit: February 24, 2015, 01:35:46 pm by terrigan »