# File which holds configuation parameters in a single place to avoid any
# mismatch between scripts (especially the cleanup scripts, which are
# destructive).
+#
+# Copyright (C) 2001 Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
#set -vx
# Major number for OBD devices
# If TMPFILE is empty (""), then no temporary file will be created for loop.
[ "$TMPFILE" ] || TMPFILE="/tmp/obdfs.tmpfile"
[ "$TMPSIZE" ] || TMPSIZE=10240
-LOOPDEV="/dev/loop0"
+[ -b /dev/loop/0 ] && LOOPDEV=/dev/loop/0
+[ -z "$LOOPDEV" -a -b /dev/loop0 ] && LOOPDEV="/dev/loop0"
# If LOOPDEV is empty, then it is assumed that BASEDEV is a real block device
# that doesn't mind being overwritten - don't use a partition with data on it!!