diff options
-rw-r--r-- | meta-oe/recipes-support/poco/poco/run-ptest | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poco/poco/run-ptest b/meta-oe/recipes-support/poco/poco/run-ptest index c8e50fc967..95fd988e48 100644 --- a/meta-oe/recipes-support/poco/poco/run-ptest +++ b/meta-oe/recipes-support/poco/poco/run-ptest | |||
@@ -1,4 +1,12 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | |||
3 | # configure dns | ||
4 | if ! nslookup secure.appinf.com >/dev/null 2>&1; then | ||
5 | trap 'mv /etc/resolv.conf.backup /etc/resolv.conf' INT EXIT | ||
6 | mv /etc/resolv.conf /etc/resolv.conf.backup | ||
7 | echo 'nameserver 8.8.8.8' > /etc/resolv.conf | ||
8 | fi | ||
9 | |||
2 | export POCO_BASE=/usr/lib/poco/ptest | 10 | export POCO_BASE=/usr/lib/poco/ptest |
3 | export LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH} | 11 | export LD_LIBRARY_PATH=${POCO_BASE}/bin:${LD_LIBRARY_PATH} |
4 | i=0 | 12 | i=0 |