diff options
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 6360618..fbb6457 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -628,10 +628,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) inet_ntoa(temp_addr), (unsigned)lease_seconds); } requested_ip = packet.yiaddr; - udhcp_run_script(&packet, - ((state >= RENEWING && state <= RENEW_REQUESTED) - ? "renew" : "bound") - ); + udhcp_run_script(&packet, state == REQUESTING ? "bound" : "renew"); state = BOUND; change_listen_mode(LISTEN_NONE); |