if (!client_config.foreground)
client_background();
-@@ -498,12 +507,13 @@
+@@ -498,12 +507,14 @@
case SIGUSR1:
perform_renew();
break;
- break;
case SIGTERM:
LOG(LOG_INFO, "Received SIGTERM");
-+ if (!client_config.release_on_quit)
++ if (client_config.release_on_quit)
++ perform_release();
return 0;
+ case SIGUSR2:
+ perform_release();
--- /dev/null
+diff -ruN busybox-1.00-old/networking/udhcp/clientpacket.c busybox-1.00-new/networking/udhcp/clientpacket.c
+--- busybox-1.00-old/networking/udhcp/clientpacket.c 2004-04-14 19:51:25.000000000 +0200
++++ busybox-1.00-new/networking/udhcp/clientpacket.c 2006-04-08 02:07:21.000000000 +0200
+@@ -166,7 +166,6 @@
+ packet.xid = random_xid();
+ packet.ciaddr = ciaddr;
+
+- add_simple_option(packet.options, DHCP_REQUESTED_IP, ciaddr);
+ add_simple_option(packet.options, DHCP_SERVER_ID, server);
+
+ LOG(LOG_DEBUG, "Sending release...");