[bin] Use `reconfigure` instead of `up` to get a new DHCP lease on docking

This commit is contained in:
Sebastian Schulze 2022-09-26 09:25:43 +02:00
parent cf1cccfc04
commit 5992dbf576
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ sleep 0.5
# Home and at my main desk
if (swaymsg -t get_inputs | grep "ErgoDox EZ"); then
doas /run/current-system/sw/bin/networkctl down wifi
doas /run/current-system/sw/bin/networkctl up ethernet
doas /run/current-system/sw/bin/networkctl reconfigure ethernet
ACTION="On main desk."
@ -38,7 +38,7 @@ elif swaymsg -t get_inputs | grep "Planck EZ"; then
ACTION="On side desk."
doas /run/current-system/sw/bin/networkctl down wifi
doas /run/current-system/sw/bin/networkctl up dorhamm-docking
doas /run/current-system/sw/bin/networkctl reconfigure dorhamm-docking
# Whereever else
else