Install this
- Code: Select all
sudo apt-get install music123
- Code: Select all
sudo gedit /etc/init.d/K99shutdownsound.sh
add this to that ! and save
#!/bin/sh
## play shutdown sound
/usr/bin/music123 /path/to/your/shutdown.file
make it executable !
- Code: Select all
sudo chmod +x /etc/init.d/K99shutdownsound.sh
now link this
- Code: Select all
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc0.d/K99shutdownsound.sh
and this
- Code: Select all
sudo ln -s /etc/init.d/K99shutdownsound.sh /etc/rc6.d/K99shutdownsound.sh
And now you have a shutdown sound. Just make sure you're not going to play a 5 minute mp3 file, since the system won't halt until it finishes streaming the file. This will play .wav .ogg .oga mp3. mp4 ! maybe more ! This will play only at shutdown, not log out !