Add BT and WiFi devices
@@ -11,6 +11,9 @@ function check_systemd {
fi
}
+echo -n "HiFiBerryOS version: "
+cat /etc/hifiberry.version
+
echo "Pi model: $CURRENT_PIMODEL"
echo "Sound card: $CURRENT_CARD"
echo "Sound card ID: $CURRENT_HW_SHORT"
@@ -25,6 +28,21 @@ else
echo OK
fi
+echo -n "BT devices: "
+DEV=""
+for INT in `hciconfig | grep hci | awk -F: '{print $1}'`; do
+ MANUFACTURER=`hciconfig -a $INT | grep "Manufacturer:" | awk -F: '{print $2}'`
+ DEV="$DEV $INT - $MANUFACTURER,"
+done
+echo $DEV | sed s/,\$//
+
+echo -n "WiFi devices: "
+DEV=""
+for INT in `iwconfig 2>/dev/null | grep wlan | awk '{print $1}'`; do
+ DEV="$DEV $INT,"
+done
+echo $DEV | sed s/,\$//
+
# Daemons
for i in audiocontrol2 beocreate2 bluetooth bluealsa bluealsa-aplay dlnampris mpd pigpiod raat shairport-sync sigmatcp snapcastmpris spotify squeezelite sshd ympd ; do
check_systemd $i $i.service
