]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Prevent generation of duplicate EXPECT_IFCONFIG entries
authorSamuli Seppänen <samuli@openvpn.net>
Tue, 8 Nov 2016 14:06:03 +0000 (16:06 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 8 Nov 2016 14:09:52 +0000 (15:09 +0100)
commit82a601f1e23d1c37bc2120dca12cadc4dbf2b4fc
tree8937f4be6421a38fd03a41228f1f0e0896405265
parent6f17e18be0d6ab801704400abcc6b17d4fed9650
Prevent generation of duplicate EXPECT_IFCONFIG entries

Previously, if t_client.rc did not source t_client_ips.rc,
update_t_client_ips.sh would add (the same) EXPECT_IFCONFIG entries to
t_client_ips.rc on every run. This patch makes update_t_client_ips.sh
check if
the entry exists before trying to add it.

v2: prevent partial matches of the EXCEPT_IFCONFIG variable name

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1478613963-28077-1-git-send-email-samuli@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12965.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/update_t_client_ips.sh