use "&&" between nmcli con down and con up to not get stuck lol

This commit is contained in:
Pratham Patel 2023-11-19 18:57:40 +05:30
parent 789c126fb8
commit 10d911f885
No known key found for this signature in database

View File

@ -30,6 +30,5 @@ sudo nmcli con modify 'Wired connection 1' \
ipv4.addresses 10.0.0.170/24 \
gw4 10.0.0.1 \
ipv4.dns 1.1.1.1
sudo nmcli con down 'Wired connection 1'
sudo nmcli con up 'Wired connection 1'
sudo nmcli con down 'Wired connection 1' && sudo nmcli con up 'Wired connection 1'
```