ideas for flexibility

master
Fabien Benetou 13 years ago
parent 6e313c52af
commit 340a91c0bd
  1. 7
      shell_scripts/con_restart

@ -1,3 +1,10 @@
#! /usr/bin/env bash #! /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/ .*//"` CON=`nmcli con list | grep wireless | sed "s/ .*//"`
nmcli con down id $CON && nmcli con up id $CON nmcli con down id $CON && nmcli con up id $CON

Loading…
Cancel
Save