diff --git a/path/wdvn-chroot b/path/wdvn-chroot index 47fda0f..344e5ab 100755 --- a/path/wdvn-chroot +++ b/path/wdvn-chroot @@ -1,4 +1,12 @@ #!/bin/bash + +trap ctrl_c INT + +function ctrl_c() { + wdvn-chroot-end "$1" + exit 1 +} + ( set -e mount -o bind "/dev" "$1/dev"