From a05dd01730bd9332f199ad5032c9ac22dfd84576 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 8 Feb 2017 18:37:38 +0100 Subject: [run-virt] resolution_standalone: Little bugfix --- .../data/opt/openslx/vmchooser/data/linux/resolution_standalone | 9 +-------- 1 file changed, 1 insertion(+), 8 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 0dbbcf98..c6cac4f9 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 @@ -7,15 +7,10 @@ # Zu erledigen: Jede Menge, zB anständiges Trapping, Fehler abfangen usw... # set -x -MOUNTDIR=/tmp/diskmount +MOUNTDIR=/mnt/diskmount RESFILE="${MOUNTDIR}"/openslx.ini 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 - logger "openslx resolution utility started." # Mountpunkt erzeugen: -- cgit v1.2.3-55-g7522