aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-05-10 22:36:10 +0000
committerLuka Perkov <luka@openwrt.org>2016-06-19 19:26:47 +0200
commitbb1778b7203302921b4868ba3907ba780ba1212d (patch)
treef3a63849bc0b353d92448d95ce48cc1e53393cf6 /package/network/config
parent691f44e0ddcf770a1b0998c90e5e9326f9b9108d (diff)
downloadmaster-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.tar.gz
master-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.tar.bz2
master-187ad058-bb1778b7203302921b4868ba3907ba780ba1212d.zip
netifd: Send DHCP release when client exits
Let DHCP client send a release when it exists so the DHCP server is informed the IP address is released and allowing to clean up IP/mac state info in intermediate devices. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49321 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config')
-rwxr-xr-xpackage/network/config/netifd/files/lib/netifd/proto/dhcp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
index 0e88af9e96..546e1d661a 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -52,7 +52,7 @@ proto_dhcp_setup() {
proto_run_command "$config" udhcpc \
-p /var/run/udhcpc-$iface.pid \
-s /lib/netifd/dhcp.script \
- -f -t 0 -i "$iface" \
+ -f -R -t 0 -i "$iface" \
${ipaddr:+-r $ipaddr} \
${hostname:+-H $hostname} \
${vendorid:+-V $vendorid} \