diff --git a/overlay/etc/dhcp/dhclient-enter-hooks b/overlay/etc/dhcp/dhclient-enter-hooks new file mode 100644 index 0000000..c04296e --- /dev/null +++ b/overlay/etc/dhcp/dhclient-enter-hooks @@ -0,0 +1,7 @@ +# Avoid handling the EXPIRE event, which would ordinarily result in the +# IP address being removed from the interface. `dhclient` fires the +# EXPIRE event every time it renews the lease, even if the lease has not +# actually expired. +if [ "${reason}" = EXPIRE ]; then + exit 0 +fi