Some messages when running mesh wifi monitor

This commit is contained in:
Bob Mottram 2017-10-29 11:42:33 +00:00
parent 988f0ef169
commit dc48d8a984
1 changed files with 22 additions and 0 deletions

View File

@ -425,6 +425,11 @@ function monitor {
exit 723657
fi
clear
echo ''
echo $'*** Stopping network ***'
echo ''
stop
echo "info: monitoring mesh network $WIFI_SSID on $IFACE"
@ -432,8 +437,18 @@ function monitor {
systemctl stop network-manager
sleep 5
clear
echo ''
echo $'*** Setting firewall rate limit ***'
echo ''
global_rate_limit
clear
echo ''
echo $'*** Enabling wifi adaptor in monitor mode ***'
echo ''
# Might have to re-enable wifi
rfkill unblock $(rfkill list|awk -F: "/phy/ {print $1}") || true
@ -448,7 +463,14 @@ function monitor {
modprobe batman-adv
batctl if add $IFACE
ifconfig $IFACE up
horst -i $IFACE
clear
echo ''
echo $'*** Restarting the network daemon. This may take a while. ***'
echo ''
start
}