basementhud/overlay/etc/dhcp/dhclient-enter-hooks

8 lines
282 B
Plaintext

# 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