From b37e9be76301f0c7860c0b60a1030d8fa5e20220 Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Mon, 15 Jan 2007 14:08:17 +0000
Subject: error when umounting irritates users, this is a cleanup function, so
 it should silently fail, if nothing is mounted.

---
 ezjail-admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ezjail-admin b/ezjail-admin
index d0a79ec..2062ebd 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -80,7 +80,7 @@ attach_images () {
 detach_images () {
   # unmount and detach memory disc
   if [ -n "${ezjail_imagedevice}" ]; then
-    umount ${ezjail_rootdir} > /dev/null
+    umount ${ezjail_rootdir} > /dev/null 2> /dev/null
     case ${ezjail_imagetype} in
       bde) gbde detach /dev/${ezjail_imagedevice} > /dev/null;;
       eli) geli detach /dev/${ezjail_imagedevice} > /dev/null;;
-- 
cgit v1.2.3