]> git.ipfire.org Git - thirdparty/openvpn.git/blame - tests/update_t_client_ips.sh
Remove compat versionhelpers.h and remove cmake/configure check for it
[thirdparty/openvpn.git] / tests / update_t_client_ips.sh
CommitLineData
df0b00c2
SS
1#!/bin/sh
2#
3# This --up script caches the IPs handed out by the test VPN server to a file
4# for later use.
5
82a601f1
SS
6RC="$TOP_BUILDDIR/t_client_ips.rc"
7
8grep EXPECT_IFCONFIG4_$TESTNUM= $RC > /dev/null 2>&1
9if [ $? -ne 0 ]; then
10 echo "EXPECT_IFCONFIG4_$TESTNUM=$ifconfig_local" >> $RC
11fi
12
13grep EXPECT_IFCONFIG6_$TESTNUM= $RC > /dev/null 2>&1
14if [ $? -ne 0 ]; then
15 echo "EXPECT_IFCONFIG6_$TESTNUM=$ifconfig_ipv6_local" >> $RC
16fi