Signed-off-by: Helmut Schaa <[email protected]>
---
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 6 ++++++
1 file changed, 6 insertions(+)
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 0481d05..99247ae 100755
--- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
@@ -49,6 +49,12 @@ proto_dhcp_setup() {
$clientid $broadcast $dhcpopts
}
+proto_dhcp_renew() {
+ local interface="$1"
+ # SIGUSR1 forces udhcpc to renew its lease
+ proto_kill_command "$interface" 16
+}
+
proto_dhcp_teardown() {
local interface="$1"
proto_kill_command "$interface"
--
1.8.1.4
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel