Ubuntu: Play shutdown sound in 16.04



Question:

I've read numerous threads about this particular topic. This appears to work in most of the time:

in the script named shutdownsound.sh:

#!/bin/sh  /usr/bin/ogg123 /usr/share/sounds/ubuntu/stereo/desktop-logout.oga  

I made all the linking: when shutdown: sudo ln -s /etc/init.d/shutdownsound.sh /etc/rc0.d/K99shutdownsound.sh

and for reboot: sudo ln -s /etc/init.d/shutdownsound.sh /etc/rc6.d/K99shutdownsound.sh

I'm trying to play the oga file before the machine shuts down but I get nothing. Strangely, start-up sound does work after using similar steps.

scripts are set to be executable.

What am I doing wrong ?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »