diff options
author | Christian Rößler | 2017-02-08 18:44:39 +0100 |
---|---|---|
committer | Christian Rößler | 2017-02-08 18:44:39 +0100 |
commit | 55da73415e9a0b83c78aa811663d6ab4c38d19d2 (patch) | |
tree | 1fdf97938deacf826788d10f0d170e739337c8e0 | |
parent | [run-virt] resolution scripts: Added two exports (seem to be missing sometime... (diff) | |
download | tm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.tar.gz tm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.tar.xz tm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.zip |
[run-virt] Pushed wrong version, sorry - 'dis right!
-rwxr-xr-x | remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone index bc139cdb..2dce26f4 100755 --- a/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone +++ b/remote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone @@ -11,6 +11,20 @@ MOUNTDIR=/mnt/diskmount RESFILE="${MOUNTDIR}"/openslx.ini export DISPLAY=:0.0 +function ausgang() { + umount "${MOUNTDIR}" + rmdir "${MOUNTDIR}" +} + +check_resolution() { + # Now, let's wait even more seconds to see if another process re-changes res.: + ACTRES=$(xrandr|grep '*'|tr -s " "|cut -f 2 -d " ") +@@ -27,8 +22,6 @@ check_resolution() { + fi + } + +trap ausgang EXIT SIGHUP SIGINT SIGTERM + check_resolution() { # Now, let's wait even more seconds to see if another process re-changes res.: ACTRES=$(xrandr|grep '*'|tr -s " "|cut -f 2 -d " ") |