diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index 7c6e0cc7..b0568db6 100755 --- a/src/freedombone-mesh-batman +++ b/src/freedombone-mesh-batman @@ -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 }