blob: 4b7de6f124c660ad2f11d6bb79ef1dc8297b6ba5 [file] [log] [blame]
Alexander Afanasyevab896762013-08-14 17:36:34 -07001diff --git ndnpingserver-wrapper ndnpingserver-wrapper
2new file mode 100755
3index 0000000..c0993c8
4--- /dev/null
5+++ ndnpingserver-wrapper
6@@ -0,0 +1,13 @@
7+#!/bin/sh
8+
9+# This script should be installed in the same place as ndnd, ndndc, ndndsmoketest, ...
10+# adjust the path to get consistency.
11+D=`dirname "$0"`
12+export PATH="$D:$PATH"
13+
14+if [ ! -f "$D/../etc/ndnx/ndnpingserver.conf" ]; then
15+ sleep 100
16+else
17+ su - ndnx -c "$D/ndnpingserver `cat $D/../etc/ndnx/ndnpingserver.conf | xargs`"
18+fi
19+