sysinfo: Add wireless configuration info

Print the wireless configuration as well as supplicant and hostapd version info

https://jira.digi.com/browse/DEL-3147

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2016-11-03 16:59:51 +01:00
parent 7a1f46175c
commit 32a234b0d1
1 changed files with 26 additions and 0 deletions

View File

@ -182,6 +182,32 @@ make_report(){
ip link show ip link show
printf "\n" printf "\n"
echo "--------------------------------------"
echo "- -"
echo "- Wireless configuration -"
echo "- -"
echo "--------------------------------------"
echo ""
wpa_supplicant -v 2>/dev/null
echo ""
if [ -f "/etc/wpa_supplicant.conf" ]; then
echo "wpa_supplicant.conf:"
cat "/etc/wpa_supplicant.conf"
else
echo "[NOT FOUND] /etc/wpa_supplicant.conf"
fi
echo ""
hostapd -v 2>&1
echo ""
if [ -f "/etc/hostapd.conf" ]; then
echo "hostapd.conf:"
cat "/etc/hostapd.conf"
else
echo "[NOT FOUND] hostapd.conf"
fi
printf "\n\n"
echo "--------------------------------------" echo "--------------------------------------"
echo "- -" echo "- -"
echo "- TrustFence -" echo "- TrustFence -"