Files
misc/shell_scripts/con_restart

11 lines
321 B
Plaintext
Raw Normal View History

2011-07-14 02:01:00 +02:00
#! /usr/bin/env bash
2011-07-17 16:59:02 +02:00
# 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
2011-07-12 23:26:49 +02:00
CON=`nmcli con list | grep wireless | sed "s/ .*//"`
nmcli con down id $CON && nmcli con up id $CON