summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmchooser/data
diff options
context:
space:
mode:
authorSimon Rettberg2013-07-05 12:02:08 +0200
committerSimon Rettberg2013-07-05 12:02:08 +0200
commit7c375528887dae948b29d6dad70ed807dd681c85 (patch)
treeea9879b9e7b3ea4b621a0c97167f20ad74d4fec4 /remote/modules/vmchooser/data
parent[vmchooser] Create text file in floppy image that tells the guest the host's ... (diff)
downloadtm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.tar.gz
tm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.tar.xz
tm-scripts-7c375528887dae948b29d6dad70ed807dd681c85.zip
[pam] Cleanup, formatting, force nscd usage in nsswitch.conf, set timeouts for LDAP lookups
Diffstat (limited to 'remote/modules/vmchooser/data')
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
index eacb8837..bf642ed0 100755
--- a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
+++ b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
@@ -407,7 +407,7 @@ fi
# via virtual floppy
cp "$xmlfile" "/etc/openslx/vmchooser/fd-loop/config.xml"
# Add another file with resolution information
-xrandr | grep -o -E 'current\s*[0-9]+\s*x\s*[0-9]+' | cut -c 8- | sed -r 's/(\s|\t|\n)//g' | head -1 > "/etc/openslx/vmchooser/fd-loop/hostres.txt"
+xrandr | grep -o -E 'current\s*[0-9]+\s*x\s*[0-9]+' | cut -c 8- | sed -r 's/(\s|\t|\n)//g' | head -n 1 > "/etc/openslx/vmchooser/fd-loop/hostres.txt"
# Get all virtual machine specific stuff from the respective include file
if [ -e /etc/openslx/${xmlvirt}/run-virt.include ] ; then