#!/bin/sh
-[ -e /proc/sys/portals/debug ] && echo 0 > /proc/sys/portals/debug
-cd /mnt/obd
-cp /usr/src/obd/demos/dbench/client.txt .
-/usr/src/obd/demos/dbench/dbench $1
+#[ -e /proc/sys/portals/debug ] && echo 0 > /proc/sys/portals/debug
+TGT=/mnt/lustre/client.txt
+SRC=/usr/lib/dbench/client.txt
+[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
+SRC=/usr/lib/dbench/client_plain.txt
+[ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT
+cd /mnt/lustre
+dbench -c client.txt $@