Scripts de son au boot
This commit is contained in:
parent
ae64313ece
commit
b2b27b84cc
3 changed files with 49 additions and 0 deletions
43
Perso/bootSound
Executable file
43
Perso/bootSound
Executable 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
5
Perso/bootSound.sh
Executable 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
1
Perso/serialOutput/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
serialOutput*
|
Loading…
Add table
Reference in a new issue