-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacman_sounds
50 lines (43 loc) · 850 Bytes
/
pacman_sounds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
```
#!/bin/sh
### BEGIN INIT INFO
# Provides: pacman_sounds
# Required-Start: $all
# Required-Stop:
# Should-Start: $named
# Should-Stop: $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Sounds for startup/shutdown
### END INIT INFO
NAME=pacman_sounds
SCRIPTNAME=/etc/init.d/$NAME
do_start()
{
# handled by rfid-mopidy
# aplay /home/pi/pacman_beginning.wav 2>&1 >/dev/null &
}
do_stop()
{
aplay /home/pi/pacman_death.wav 2>&1 >/dev/null &
}
# Remove the action from $@ before it is used by the run action
action=$1
[ "$action" != "" ] && shift
case "$action" in
start)
do_start
;;
stop)
do_stop
;;
status)
;;
restart|force-reload)
log_daemon_msg "Restarting " "$NAME"
;;
run)
;;
esac
:
```