diff options
-rw-r--r-- | release/scripts/doFS.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh index ec56ae7..075e99b 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* |