Get and reactivate netDevice
This commit is contained in:
parent
0944e70ad4
commit
bb46ba091a
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue