First, i made a copy of the file countrywizard.qs. Then, using a text editor, i stripped out everything except the part that plays the sound. I renamed the modified file startup-sound.qs and placed it in my /root/Startup folder.
NOTE: This script will also work when placed into the /etc/init.d directory.
The modified file is as follows:
Code: Select all
#!/bin/sh
#if [ "`grep 'alias snd\-card\-0' /etc/modprobe.d/alsa.conf`" != "" ];then #101017
aplay /usr/share/audio/startup.au &
#wavplay /usr/share/audio/startup.wav &
RETAPLAY=$?
PIDAPLAY=$!
# fi
fi
exit 0