ACK. I have not actually compile-tested this (buildbot will :-) ) but it looks reasonable and since we've decided to use idx for netsh.exe, it should be available to scripts too.
Your patch has been applied to the master and release/2.3 branch. I've taken the liberty of actually documenting $env_idx in doc/openvpn.8 commit 9dff2c1f106865a72a1d505076751dde170e88dc (master) commit 9fe2ac8d51b8182f5e8e41ce7c875f451de10191 (release/2.3) Author: Lev Stipakov List-Post: openvpn-devel@lists.sourceforge.net Date: Sat Dec 12 14:34:20 2015 +0200 Pass adapter index to up/down scripts Signed-off-by: Lev Stipakov <lstipa...@gmail.com> Acked-by: Gert Doering <g...@greenie.muc.de> Message-Id: <1449923660-27363-1-git-send-email-lstipa...@gmail.com> URL: http://article.gmane.org/gmane.network.openvpn.devel/10762 Signed-off-by: Gert Doering <g...@greenie.muc.de> -- kind regards, Gert Doering