summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/beep.sh
blob: 916d11ae7f7795002b2824ef9f643ffb1e882fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ -c "/dev/speaker" ]; then
	
	if [ "$1" = "start" ]; then
		/usr/local/bin/beep -p 500 200
		/usr/local/bin/beep -p 400 200
		/usr/local/bin/beep -p 600 200
		/usr/local/bin/beep -p 800 200
		/usr/local/bin/beep -p 800 200
	fi
	if [ "$1" = "stop" ]; then
		/usr/local/bin/beep -p 600 200
		/usr/local/bin/beep -p 800 200
		/usr/local/bin/beep -p 500 200
		/usr/local/bin/beep -p 400 200
		/usr/local/bin/beep -p 400 200
	fi

fi
OpenPOWER on IntegriCloud