diff options
Diffstat (limited to 'debian/patches/0010-Call-client-script-after-interfaces-have-been-update.patch')
-rw-r--r-- | debian/patches/0010-Call-client-script-after-interfaces-have-been-update.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/patches/0010-Call-client-script-after-interfaces-have-been-update.patch b/debian/patches/0010-Call-client-script-after-interfaces-have-been-update.patch new file mode 100644 index 0000000..4d35478 --- /dev/null +++ b/debian/patches/0010-Call-client-script-after-interfaces-have-been-update.patch @@ -0,0 +1,47 @@ +From: Jeremie Corbier <jeremie@famille-corbier.net> +Date: Tue, 2 Dec 2014 11:18:52 +0100 +Subject: Call client script after interfaces have been updated + +Closes: #734644 + +Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net> +--- + dhcp6c.c | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/dhcp6c.c b/dhcp6c.c +index ccb601c..1d10a78 100644 +--- a/dhcp6c.c ++++ b/dhcp6c.c +@@ -1853,15 +1853,6 @@ client6_recvreply(ifp, dh6, len, optinfo) + } + } + +- /* +- * Call the configuration script, if specified, to handle various +- * configuration parameters. +- */ +- if (ifp->scriptpath != NULL && strlen(ifp->scriptpath) != 0) { +- debug_printf(LOG_DEBUG, FNAME, "executes %s", ifp->scriptpath); +- client6_script(ifp->scriptpath, state, optinfo); +- } +- + /* + * Set refresh timer for configuration information specified in + * information-request. If the timer value is specified by the server +@@ -1927,6 +1918,15 @@ client6_recvreply(ifp, dh6, len, optinfo) + check_exit(); + } + ++ /* ++ * Call the configuration script, if specified, to handle various ++ * configuration parameters. ++ */ ++ if (ifp->scriptpath != NULL && strlen(ifp->scriptpath) != 0) { ++ debug_printf(LOG_DEBUG, FNAME, "executes %s", ifp->scriptpath); ++ client6_script(ifp->scriptpath, state, optinfo); ++ } ++ + debug_printf(LOG_DEBUG, FNAME, "got an expected reply, sleeping."); + + if (infreq_mode) { |