update_t_client_ips.sh 426 B

12345678910111213141516
  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. RC="$TOP_BUILDDIR/t_client_ips.rc"
  6. grep EXPECT_IFCONFIG4_$TESTNUM= $RC > /dev/null 2>&1
  7. if [ $? -ne 0 ]; then
  8. echo "EXPECT_IFCONFIG4_$TESTNUM=$ifconfig_local" >> $RC
  9. fi
  10. grep EXPECT_IFCONFIG6_$TESTNUM= $RC > /dev/null 2>&1
  11. if [ $? -ne 0 ]; then
  12. echo "EXPECT_IFCONFIG6_$TESTNUM=$ifconfig_ipv6_local" >> $RC
  13. fi