1# #-- 05-asynclook.pre--# 2# source the master var file when it's there 3[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master 4# use .tpkg.var.test for in test variable passing 5[ -f .tpkg.var.test ] && source .tpkg.var.test 6 7. ../common.sh 8get_random_port 2 9FWD_PORT=$(($RND_PORT + 1)) 10echo "FWD_PORT=$FWD_PORT" >> .tpkg.var.test 11 12# start forwarder 13get_ldns_testns 14$LDNS_TESTNS -p $FWD_PORT 05-asynclook.testns >fwd.log 2>&1 & 15FWD_PID=$! 16echo "FWD_PID=$FWD_PID" >> .tpkg.var.test 17 18cat .tpkg.var.test 19 20wait_ldns_testns_up fwd.log 21