mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Audio - Updated et-system-info to output the audio ET_DEVICE
This commit is contained in:
@@ -32,7 +32,14 @@ case $1 in
|
||||
|
||||
# 1. Check if the symlink was created by the udev rules
|
||||
if [ -e /dev/et-audio ]; then
|
||||
echo "Connected"
|
||||
|
||||
UDEV_OUT=$(udevadm info /dev/et-audio | grep ET_DEVICE)
|
||||
if [ $? -eq 0 ]; then
|
||||
udevadm info /dev/et-audio | grep ET_DEVICE | cut -d"=" -f2
|
||||
else
|
||||
echo "Connected"
|
||||
fi
|
||||
|
||||
else
|
||||
echo "Not connected"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user