From f405d49cadc32bffe1f556fb42fc128647f88aca Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 29 Apr 2009 16:13:19 +0000 Subject: adding support of serial / parallel port to vmware plugin git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2836 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/bin/hwautocfg | 3 +++ os-plugins/plugins/vmchooser/files/run-virt.sh | 2 +- os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm | 3 ++- os-plugins/plugins/vmware/files/run-virt.include | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index 4dbf96e7..55d3ff12 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -95,6 +95,9 @@ hwinfo --scanner >/etc/hwinfo.scanner [ -f /tmp/scanner-udev ] && cat /tmp/scanner-udev \ >>/mnt/etc/udev/rules.d/04-scanner.rules +# parallel port setup +modprobe ${MODPRV} parport_pc && modprobe ${MODPRV} ppdev + # if any new device appeared up to now mdev -s return 0 diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index bc3de80d..8c1ccabe 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -184,7 +184,7 @@ writelog () echo -e "$1" # Log into file - echo -e "$1" >>run-virt.log + echo -e "$1" >>/tmp/run-virt.$$.log } # Setup the rest of the environment and run the virtualization tool just confi- diff --git a/os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm b/os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm index e2394f27..7e6840cc 100644 --- a/os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm +++ b/os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm @@ -168,8 +168,9 @@ sub fillRunlevelScript echo -n "Starting vmware background services ..." # load the configuration file . /etc/vmware/slxvmconfig - # hack to access the first serial port + # hack to access the first serial/parallel port chmod a+rw /dev/ttyS0 + chmod a+rw /dev/parport0 load_modules setup_vmnet0 setup_vmnet1 diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index a9c8fb04..f20b8d65 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -252,7 +252,7 @@ case "$serial" in ;; esac case "$parallel" in - lp*) + lp*|parport*) paraldev="parallel0.filename = \"/dev/${parallel}\"" paralbidi="TRUE" parallel="TRUE" -- cgit v1.2.3-55-g7522