44 lines
719 B
Text
44 lines
719 B
Text
|
#! /bin/sh
|
||
|
# /etc/init.d/bootSound
|
||
|
|
||
|
#A mettre dans le dossier ci-dessus pour que ça se lance pendant le boot
|
||
|
|
||
|
### BEGIN INIT INFO
|
||
|
# Provides: bootSound
|
||
|
# Required-Start: $gdm3 $dbus $PackageKit
|
||
|
# Required-Stop:
|
||
|
# Default-Start: 2 3 4 5
|
||
|
# Default-Stop: 0 1 6
|
||
|
# Short-Description: Start up sound
|
||
|
# Description: The above
|
||
|
### END INIT INFO
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
pulseaudio &
|
||
|
sleep 1
|
||
|
echo "My man it is $(date)"
|
||
|
mplayer -nogui -softvol -ao alsa,pulse /home/trotfunky/Documents/Sounds/winxp.mp3 &
|
||
|
wait %2
|
||
|
killall pulseaudio
|
||
|
;;
|
||
|
stop)
|
||
|
exit 0
|
||
|
;;
|
||
|
restart)
|
||
|
exit 0
|
||
|
;;
|
||
|
force-reload)
|
||
|
exit 0
|
||
|
;;
|
||
|
status)
|
||
|
exit 0
|
||
|
;;
|
||
|
*)
|
||
|
echo "Well you done fucked up"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|