Some messages when running mesh wifi monitor
This commit is contained in:
parent
988f0ef169
commit
dc48d8a984
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue