-
Notifications
You must be signed in to change notification settings - Fork 5
/
showsound
32 lines (28 loc) · 1.14 KB
/
showsound
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
#!/bin/bash -u
# Script_name : showsound
# Author : Bert Lindeman
# Description : Show info about EV3 sound
# Version : v1.3
# Date : 2014-11-04
# Usage : showsound
# Notes : o No parameters used
# o Do not confuse with sound-SENSOR
# Copyright : 2014 Bert Lindeman
# License : GPL-3.0+
#
#============================================================================
#
# Changelog
# Date By Description
# 20141104 BL prepare for release v1.3
# 20140907 BL Use centralized functions
# 20140826 BL Add script header
#============================================================================
. /usr/local/bin/bert_ev3dev_functions
cd "/sys/devices/platform/snd-legoev3/"
echo "Report from `pwd`"
printf "${brblue}modalias: ${green} %-26s${white}\n" "`cat modalias`"
printf "${brblue}tone : ${green} %-26s${white}\n" "`cat tone`"
printf "${brblue}volume : ${green} %-26s${white}\n" "`cat volume`"
printf "${brblue}uevent :\n ${green} %-26s${white}\n" "`cat uevent`"
echo -e "${endColor} " # back to normal