Get and reactivate netDevice

This commit is contained in:
Santiago Lo Coco 2022-03-25 09:16:26 -03:00
parent 0944e70ad4
commit bb46ba091a
1 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh #!/bin/sh
protonvpn-cli d protonvpn-cli d
#nmcli device down enp3s0 netDevice="$(ip -4 route ls | awk '/^default/{print $5}')"
nmcli networking off nmcli device down "$netDevice"
#sleep 1 sleep 1
#nmcli device up enp3s0 nmcli device up "$netDevice"
nmcli networking on