]> sourceware.org Git - dm.git/commitdiff
Reinstate exit status.
authorAlasdair Kergon <agk@redhat.com>
Fri, 10 May 2002 15:21:16 +0000 (15:21 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 10 May 2002 15:21:16 +0000 (15:21 +0000)
scripts/devmap_mknod.sh

index d867a6606794910174b4f4457862dfd12881bf98..b9a912185dd419e3582073cb22de50dad55a94b4 100755 (executable)
@@ -4,7 +4,7 @@
 # on non-devfs systems.
 # Non-zero exit status indicates failure.
 
-# These correspond to the definitions in device-mapper.h and dm.h
+# These must correspond to the definitions in device-mapper.h and dm.h
 DM_DIR="device-mapper"
 DM_NAME="device-mapper"
 
@@ -15,13 +15,13 @@ control="$dir/control"
 
 # Check for devfs, procfs
 if test -e /dev/.devfsd ; then
-       echo "devfs is in use, no need to create devices."
+       echo "devfs detected: devmap_mknod.sh script not required."
        exit
 fi
 
 if test ! -e /proc/devices ; then
-       echo "procfs is not being used; you'll have to make $control manually."
-       exit
+       echo "procfs not found: please create $control manually."
+       exit 1
 fi
 
 # Get major, minor, and mknod
@@ -29,8 +29,8 @@ major=$(awk '$2 ~ /^misc$/ {print $1}' /proc/devices)
 minor=$(awk "\$2 ~ /^$DM_NAME\$/ {print \$1}" /proc/misc)
 
 if test -z "$major" -o -z "$minor" ; then
-       echo "$DM_NAME kernel module isn't loaded; refusing to create $control."
-       exit
+       echo "$DM_NAME kernel module not loaded: can't create $control."
+       exit 1
 fi
 
 mkdir -p --mode=755 $dir
This page took 0.092625 seconds and 5 git commands to generate.