0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-19 19:42:30 +02:00
openvpn/tests/update_t_client_ips.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
426 B
Bash
Raw Normal View History

#!/bin/sh
#
# This --up script caches the IPs handed out by the test VPN server to a file
# for later use.
RC="$TOP_BUILDDIR/t_client_ips.rc"
grep EXPECT_IFCONFIG4_$TESTNUM= $RC > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "EXPECT_IFCONFIG4_$TESTNUM=$ifconfig_local" >> $RC
fi
grep EXPECT_IFCONFIG6_$TESTNUM= $RC > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "EXPECT_IFCONFIG6_$TESTNUM=$ifconfig_ipv6_local" >> $RC
fi