summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2017-02-08 18:44:39 +0100
committerChristian Rößler2017-02-08 18:44:39 +0100
commit55da73415e9a0b83c78aa811663d6ab4c38d19d2 (patch)
tree1fdf97938deacf826788d10f0d170e739337c8e0
parent[run-virt] resolution scripts: Added two exports (seem to be missing sometime... (diff)
downloadtm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.tar.gz
tm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.tar.xz
tm-scripts-55da73415e9a0b83c78aa811663d6ab4c38d19d2.zip
[run-virt] Pushed wrong version, sorry - 'dis right!
-rwxr-xr-xremote/modules/run-virt/data/opt/openslx/vmchooser/data/linux/resolution_standalone14
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 " ")