diff options
author | Andrew Cady <d@cryptonomic.net> | 2021-01-17 19:01:53 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2021-01-18 15:56:30 -0500 |
commit | 8845a977db9d660515e1ca17ae2afadc0cb7b38d (patch) | |
tree | 6bee6c0a8120e850521ed2e74647066556059d52 | |
parent | 558b59c44c743204bb6c4697ed51796b0cf793cc (diff) |
nm-reup.sh
-rw-r--r-- | dot/local/bin/nm-reup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dot/local/bin/nm-reup b/dot/local/bin/nm-reup new file mode 100644 index 0000000..aa40a18 --- /dev/null +++ b/dot/local/bin/nm-reup | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | nmcli -t --fields=name con show --active | | ||
3 | while read con | ||
4 | do | ||
5 | ( | ||
6 | set -x | ||
7 | nmcli con down "$con" | ||
8 | nmcli con up "$con" | ||
9 | ) | ||
10 | done | ||