diff options
author | Michael Janczyk | 2009-04-24 20:13:00 +0200 |
---|---|---|
committer | Michael Janczyk | 2009-04-24 20:13:00 +0200 |
commit | de7eaf4d9a3652fd3b8de5967ce21f61913ac859 (patch) | |
tree | fe96aabe5fce80a3ba60390d4cc8becb1b3bf74d /os-plugins/plugins/vmware/files/run-virt.include | |
parent | Trying to support attachment of serial/parallel devices in virtual (diff) | |
download | core-de7eaf4d9a3652fd3b8de5967ce21f61913ac859.tar.gz core-de7eaf4d9a3652fd3b8de5967ce21f61913ac859.tar.xz core-de7eaf4d9a3652fd3b8de5967ce21f61913ac859.zip |
bug: var serial/parallel not defined
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2828 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files/run-virt.include')
-rw-r--r-- | os-plugins/plugins/vmware/files/run-virt.include | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index a9c8fb04..9256fb55 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -237,6 +237,7 @@ case "$enable3d" in esac # serial/parallel port defined (e.g. "ttyS0, lp0" or "autodetect") +serial=$(grep -i '<serialport param="' ${xml} | awk -F '"' '{ print $2 }') case "$serial" in tty*) serialdev="serial0.filename = \"/dev/${serial}\"" @@ -251,6 +252,7 @@ case "$serial" in serial="FALSE" ;; esac +parallel=$(grep -i '<parport param="' ${xml} | awk -F '"' '{ print $2 }') case "$parallel" in lp*) paraldev="parallel0.filename = \"/dev/${parallel}\"" |