aboutsummaryrefslogtreecommitdiffstats
path: root/dfly-update
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-01-08 18:41:49 +0800
committerAaron LI <aly@aaronly.me>2019-01-08 19:18:28 +0800
commitfdb1405121b2c40fff3f7277586ede1900c9cebc (patch)
treee644e5a5097d1cf04ce617081a41f437b1aa98c6 /dfly-update
parentd15d0a13317248af424191acc6e9f35bc89b6c60 (diff)
downloaddfly-update-fdb1405121b2c40fff3f7277586ede1900c9cebc.tar.bz2
Fix vnconfig(8) use error
Fix the vnconfig(8) use error introduced in 10a4caf8a5bf6de99248b133a9cb90e791067541.
Diffstat (limited to 'dfly-update')
-rwxr-xr-xdfly-update4
1 files changed, 2 insertions, 2 deletions
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}
}