netifd: proto/dhcp.sh: directly use signal name in proto_dhcp_renew() we call proto_kill_command, which now supports symbolic names directly, so conversion unneeded.
Signed-off-by: Bastian Bittorf <bitt...@bluebottle.com> --- package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 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 6668b49..b3e09e2 100755 --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh @@ -59,9 +59,9 @@ proto_dhcp_setup() { proto_dhcp_renew() { local interface="$1" - # SIGUSR1 forces udhcpc to renew its lease - local sigusr1="$(kill -l SIGUSR1)" - [ -n "$sigusr1" ] && proto_kill_command "$interface" $sigusr1 + + # forces udhcpc to renew its lease + proto_kill_command "$interface" SIGUSR1 } proto_dhcp_teardown() { -- 1.7.10.4 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel