NODEVFS cleanup: don't bother with MAKEDEV.

This commit is contained in:
Ruslan Ermilov 2003-03-31 12:35:26 +00:00
parent 51df6fdf37
commit 99f0879155

View File

@ -39,12 +39,8 @@ fi
MDDEVICE=`mdconfig -a -t vnode -f ${FSIMG}`
if [ ! -c /dev/${MDDEVICE} ] ; then
if [ ! -f /dev/MAKEDEV ] ; then
echo "No /dev/$MDDEVICE and no MAKEDEV" 1>&2
mdconfig -d -u ${MDDEVICE} 2>/dev/null || true
echo "No /dev/$MDDEVICE" 1>&2
exit 1
fi
(cd /dev && sh MAKEDEV ${MDDEVICE})
fi
trap "umount ${MNT}; mdconfig -d -u ${MDDEVICE}" EXIT