Trap ctrl+c in wdvn-chroot
This commit is contained in:
parent
25c337fb91
commit
2ace4e62a0
@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
trap ctrl_c INT
|
||||||
|
|
||||||
|
function ctrl_c() {
|
||||||
|
wdvn-chroot-end "$1"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
mount -o bind "/dev" "$1/dev"
|
mount -o bind "/dev" "$1/dev"
|
||||||
|
Loading…
Reference in New Issue
Block a user