summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gbde/test.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/gbde/test.sh b/sbin/gbde/test.sh
index eeb2c4dee..67d8b38 100644
--- a/sbin/gbde/test.sh
+++ b/sbin/gbde/test.sh
@@ -47,9 +47,15 @@ if [ -f image.uu ] ; then
else
uudecode -p ${1}/image.uu | bzcat > $D
fi
-gbde attach $D -p foo
+
+if [ `md5 < $D` != "a4066a739338d451b919e63f9ee4a12c" ] ; then
+ echo "Failed to set up md(4) device correctly"
+ exit 2
+fi
+
+./gbde attach $D -p foo
fsck_ffs ${D}.bde
-gbde detach $D
+./gbde detach $D
mdconfig -d -u $MD
OpenPOWER on IntegriCloud