summaryrefslogtreecommitdiff
path: root/package/network/config
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-03-31 12:18:29 +0200
committerJo-Philipp Wich <jo@mein.io>2016-03-31 12:18:29 +0200
commit81a5f1ac9ea70280b56e0a16a57cd5bc4b117057 (patch)
treed3ed4eb19646391f6d99eb0a09d94300635406cc /package/network/config
parent3df4eaf22b756a8460e514e0e49a876d5e5c40e3 (diff)
downloadmtk-20170518-81a5f1ac9ea70280b56e0a16a57cd5bc4b117057.zip
mtk-20170518-81a5f1ac9ea70280b56e0a16a57cd5bc4b117057.tar.gz
mtk-20170518-81a5f1ac9ea70280b56e0a16a57cd5bc4b117057.tar.bz2
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>
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 0e88af9..546e1d6 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} \