-#!/bin/sh
+#!/bin/sh -vx
+
+SRCDIR="`dirname $0`/"
+[ -f $SRCDIR/common.sh ] || SRCDIR="/lib/lustre"
-SRCDIR="`dirname $0`"
. $SRCDIR/common.sh
setup_opts "$@"
-setup_portals
-setup_lustre
+setup_portals || exit $?
+setup_lustre || exit $?
+setup_ldlm || exit $?
-setup_server new_fs
-setup_client
+setup_server new_fs || exit $?
+setup_client || exit $?