summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 " ")