Whamcloud - gitweb
Update copyright and license information.
[fs/lustre-release.git] / lustre / demos / config.sh
index 51f4df5..2ff55e3 100644 (file)
@@ -2,6 +2,11 @@
 # 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
@@ -15,7 +20,8 @@ OBDMAJ=186
 # 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!!