Make it possible to make release on archaic kernels.

This commit is contained in:
Poul-Henning Kamp 1999-11-27 18:48:10 +00:00
parent 3f45ca0445
commit c628363b98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53779

View File

@ -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*