the basename of the config script, so you can do:
NAME=lov sh llmount.sh
NAME=lov sh llmountcleanup.sh
and it will work.
Also fix a bug in llmount.sh, which I think would have prevented the
XML config file from being regenerated properly.
config=$NAME.xml
mkconfig=./$NAME.sh
-if [ ! -f $local.xml -o $mkconfig -nt $local.xml ]; then
+if [ ! -f $config -o $mkconfig -nt $config ]; then
$mkconfig $config || exit 1
fi
#!/bin/sh
LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-local}
-if [ ! -f local.xml ]; then
- ./local.sh
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config -o $mkconfig -nt $config ]; then
+ $mkconfig $config || exit 1
fi
-${LCONF} --cleanup --dump /tmp/debug local.xml
+${LCONF} --cleanup --dump /tmp/debug $config
#!/bin/sh
-LCONF=../utils/lconf
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-local}
-if [ ! -f local.xml ]; then
- ./local.sh
+config=$NAME.xml
+mkconfig=./$NAME.sh
+
+if [ ! -f $config -o $mkconfig -nt $config ]; then
+ $mkconfig $config || exit 1
fi
-${LCONF} --gdb local.xml
+${LCONF} --gdb $config || exit 2