summaryrefslogtreecommitdiffstats
path: root/kvm-wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kvm-wrapper.sh')
-rwxr-xr-xkvm-wrapper.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvm-wrapper.sh b/kvm-wrapper.sh
index 9605389..758300d 100755
--- a/kvm-wrapper.sh
+++ b/kvm-wrapper.sh
@@ -24,9 +24,13 @@ function fail_exit ()
local USE_PID_FILE=""
test_exist "$PID_FILE" || USE_PID_FILE="true"
[[ -n "$USE_PID_FILE" ]] && echo "error" > "$PID_FILE"
+ echo ""
+ stty sane
echo "Press ^D (EOF) or enter to exit"
read
[[ -n "$USE_PID_FILE" ]] && rm -f "$PID_FILE"
+ stty sane
+ reset
)
echo "Exiting."
exit 1