NODEVFS cleanup: don't bother with MAKEDEV.

This commit is contained in:
ru 2003-03-31 12:35:26 +00:00
parent b8ce521487
commit e70a9ee9db

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