From fdb1405121b2c40fff3f7277586ede1900c9cebc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 8 Jan 2019 18:41:49 +0800 Subject: Fix vnconfig(8) use error Fix the vnconfig(8) use error introduced in 10a4caf8a5bf6de99248b133a9cb90e791067541. --- dfly-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dfly-update') diff --git a/dfly-update b/dfly-update index dad8990..3bf5b2d 100755 --- a/dfly-update +++ b/dfly-update @@ -129,7 +129,7 @@ mount_image() { local vn [ -d "${mntpnt}" ] || mkdir "${mntpnt}" echo "Mounting image ${imgfile} to ${mntpnt} ..." - vn=$(vnconfig -v -c vn ${imgfile}) || exit ${EC_VN} + vn=$(vnconfig -c vn ${imgfile}) || exit ${EC_VN} mount -r /dev/${vn}s2a ${mntpnt} && echo "DONE" || exit ${EC_MOUNT} @@ -158,7 +158,7 @@ umount_image() { echo -n "Umounting image from ${mntpnt} ... " umount ${mntpnt} && echo "DONE" || exit ${EC_UMOUNT} echo "Disable and unconfigure VN device ${vn} ... " - vnconfig -v -u ${vn} && + vnconfig -u ${vn} && echo "DONE" || exit ${EC_VN} } -- cgit v1.2.2