1
0
Fork 0

Scripts de son au boot

This commit is contained in:
trotFunky 2017-12-27 18:07:32 +01:00
parent ae64313ece
commit b2b27b84cc
3 changed files with 49 additions and 0 deletions

43
Perso/bootSound Executable file
View file

@ -0,0 +1,43 @@
#! /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

5
Perso/bootSound.sh Executable file
View file

@ -0,0 +1,5 @@
#! /bin/sh
mplayer -nogui -softvol -ao alsa,pulse /home/trotfunky/Documents/Sounds/winxp.mp3 &
exit 0

1
Perso/serialOutput/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
serialOutput*