From a8dceef3fe552a90578e033eceb21390f785cb83 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 10 Aug 2016 20:36:36 +0800 Subject: try to umount first if the iso mount point is mounted --- functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.sh b/functions.sh index 8af5f07..65bf6fb 100644 --- a/functions.sh +++ b/functions.sh @@ -65,6 +65,10 @@ download_iso() { } mount_iso() { + if findmnt "$ISOMNT" > /dev/null + then + umount_iso + fi udevil mount "isofiles/$ISOFILE" "$ISOMNT" } -- cgit v1.2.3