diff --git a/etc/dhcpcd.exit-hook b/etc/dhcpcd.exit-hook index f9c19f2..5a4ed66 100755 --- a/etc/dhcpcd.exit-hook +++ b/etc/dhcpcd.exit-hook @@ -1,3 +1,6 @@ #!/bin/bash -[ "$interface" = "enp0s20f0u4c2" ] && [ "$reason" = "INFORM" ] && /usr/sbin/ip a add 172.16.246.254/24 dev "$interface" +#[ "$interface" = "enp0s20f0u4c2" ] && [ "$reason" =~ ^BOUND|REBIND|RENEW ] && /usr/sbin/ip a add 172.16.246.254/24 dev "$interface" >/dev/null 2>&1 +[ "$interface" = "enp0s20f0u4c2" ] && /usr/sbin/ip a add 172.16.246.254/24 dev "$interface" >/dev/null 2>&1 + +/usr/sbin/dhcpcd -k enp0s20f0u1u4