From 340a91c0bd74eba69da7ceced27e3f1bb112cbd2 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Sun, 17 Jul 2011 16:59:02 +0200 Subject: [PATCH] ideas for flexibility --- shell_scripts/con_restart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell_scripts/con_restart b/shell_scripts/con_restart index b7e7eb5..3a25996 100755 --- a/shell_scripts/con_restart +++ b/shell_scripts/con_restart @@ -1,3 +1,10 @@ #! /usr/bin/env bash + +# TODO +# warn that packet loss is increasing at a speciied rate +# base interval e.g. 120sec +# if a downward trend is detected, increase the interval +# if the situation improves throttle back + CON=`nmcli con list | grep wireless | sed "s/ .*//"` nmcli con down id $CON && nmcli con up id $CON