Hi,
Yes. There's a script "/etc/rc.local" which will be called during boot (somewhere at the end). You can put a command in it which plays a sound.
Now about playing a sound, I suspect you don't have the sound sample in raw, therefore you'll need something to decode it. There are many command line tools for that, try one of these:
- mpg123
- mpg321
- mplayer
- cvlc
All of the above are capable of playing an MP3 for example, and I've ordered the list by complexity (mpg123 is the simplest with least dependency, cvlc requires the most).
One last note, you should play the sound in the background and let the bootup continue during the playback. For that, you have to append an and "&" at the end of the command. Also it is very important to return with a success code from rc.local. Putting all together:
/etc/rc.local:
Code: Select all
mpg123 /home/pi/startupchime.mp3 &
exit 0
Cheers,
bzt