Adjust trap handling to get clean exit.
authorMichael Prokop <mika@grml.org>
Fri, 3 Jun 2011 17:52:01 +0000 (19:52 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 3 Jun 2011 17:53:11 +0000 (19:53 +0200)
grml-live

index 780bf3c..85b001c 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -154,7 +154,8 @@ bailout() {
   log "------------------------------------------------------------------------------"
   exit "$EXIT"
 }
-trap bailout 1 2 3 3 6 9 14 15 EXIT
+trap bailout 1 2 3 3 6 9 14 15
+trap umount_all EXIT
 # }}}
 
 # log file stuff {{{