sysinfo: add new wireless configuration files

We have introduced new default configuration files for wireless that do
not show on sysinfo, so add them if they exist.

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

Signed-off-by: Alejandro Navarro <alejandro.navarro@digi.com>
This commit is contained in:
Alejandro Navarro 2017-04-10 16:16:34 +02:00
parent fcdada265e
commit 36d35d2ed4
1 changed files with 22 additions and 1 deletions

View File

@ -196,8 +196,15 @@ make_report(){
else
echo "[NOT FOUND] /etc/wpa_supplicant.conf"
fi
echo ""
if [ -f "/etc/wpa_supplicant_p2p.conf" ]; then
echo "wpa_supplicant_p2p.conf:"
cat "/etc/wpa_supplicant_p2p.conf"
else
echo "[NOT FOUND] /etc/wpa_supplicant_p2p.conf"
fi
echo ""
hostapd -v 2>&1
echo ""
if [ -f "/etc/hostapd.conf" ]; then
@ -206,6 +213,20 @@ make_report(){
else
echo "[NOT FOUND] hostapd.conf"
fi
echo ""
if [ -f "/etc/hostapd_wlan0.conf" ]; then
echo "hostapd_wlan0.conf:"
cat "/etc/hostapd_wlan0.conf"
else
echo "[NOT FOUND] /etc/hostapd_wlan0.conf"
fi
echo ""
if [ -f "/etc/hostapd_wlan1.conf" ]; then
echo "hostapd_wlan1.conf:"
cat "/etc/hostapd_wlan1.conf"
else
echo "[NOT FOUND] /etc/hostapd_wlan1.conf"
fi
printf "\n\n"
echo "--------------------------------------"