NAME=${NAME:-local}
config=$NAME.xml
-mkconfig=./$NAME.sh
+mkconfig=$NAME.sh
+
+if [ "$PORTALS" ]; then
+ portals_opt="--portals=$PORTALS"
+fi
+
+if [ "$LUSTRE" ]; then
+ lustre_opt="--lustre=$LUSTRE"
+fi
if [ ! -f $config -o $mkconfig -nt $config ]; then
- $mkconfig $config || exit 1
+ sh $mkconfig $config || exit 1
fi
-${LCONF} --gdb $config || exit 2
+${LCONF} $portals_opt $lustre_opt --gdb $config || exit 2