package/busybox/udhcpc.script: ensure action argument is correctly passed to hook...
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 17 Aug 2021 10:19:22 +0000 (12:19 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 17 Aug 2021 10:19:22 +0000 (12:19 +0200)
commit94c41eef615bb33ad26fff71d341f66e35286f5d
treead1a5f1d11b11f6e29a9dba67091b7aaa1ffe4ac
parent6454eacf1018ec9be9d4f833e7a8f0a21a47f167
package/busybox/udhcpc.script: ensure action argument is correctly passed to hook scripts

commit f79a420825479c47d (package/busybox/udhcpc.script: support RFC3442
static routes) used 'set --' clobbering the positional arguments, causing
the action argument to not be correctly forwarded to hook scripts for the
renew / bound cases if static routes are provided by the server.

As a workaround, save the action argument at the beginning of the script and
use that when calling hook scripts.

Reported-by: 王琦 <wangwangqi2011@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/udhcpc.script