summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-11-27 18:48:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-11-27 18:48:10 +0000
commitc628363b9820c18fd5810f29f8cb5f383cac626f (patch)
tree028ba5f7191a7fa9ade30456c1e6a22b8f39c813
parent3f45ca04455501a974a9bce0a59cb51de68bfdcf (diff)
Notes
-rw-r--r--release/scripts/doFS.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index ec56ae7d0f81..075e99b553ea 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -22,14 +22,17 @@ FSLABEL=$1 ; shift
deadlock=20
+u=`expr $VNDEVICE : 'vn\([0-9]*\)' || true`
+mknod /dev/vnn${u} b 15 `expr 65538 + $u '*' 8`
+mknod /dev/rvnn${u} c 43 `expr 65538 + $u '*' 8`
+mknod /dev/vnn${u}c b 15 `expr 2 + $u '*' 8`
+mknod /dev/rvnn${u}c c 43 `expr 2 + $u '*' 8`
+VNDEVICE=vnn$u
+
while true
do
rm -f ${FSIMG}
- if [ ! -b /dev/${VNDEVICE} -o ! -c /dev/r${VNDEVICE} ] ; then
- ( cd /dev && sh MAKEDEV ${VNDEVICE} )
- fi
-
umount /dev/${VNDEVICE} 2>/dev/null || true
umount ${MNT} 2>/dev/null || true
@@ -67,3 +70,4 @@ do
fi
break;
done
+rm -f /dev/*vnn*