[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-34-gc043a6b

Chris Lamb lamby at debian.org
Sun Oct 19 16:10:03 UTC 2008


The following commit has been merged in the master branch:
commit 9b56e410ab41094355043cda1106597f54aa4d3d
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Oct 19 15:58:29 2008 +0100

    Add utility function to call 'Exit' when script exits.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

diff --git a/functions/exit.sh b/functions/exit.sh
index 1c24462..47b88a7 100755
--- a/functions/exit.sh
+++ b/functions/exit.sh
@@ -24,3 +24,9 @@ Exit ()
 	umount chroot/selinux > /dev/null 2>&1 || true
 	umount chroot/sys > /dev/null 2>&1 || true
 }
+
+Setup_cleanup ()
+{
+	Echo_message "Setting up cleanup function"
+	trap 'Exit' INT TERM HUP EXIT
+}

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list