summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Janczyk2009-04-29 18:13:19 +0200
committerMichael Janczyk2009-04-29 18:13:19 +0200
commitf405d49cadc32bffe1f556fb42fc128647f88aca (patch)
tree3160c32998a03507696bfd6d5cc87ae127124155
parentDefinition of serial/paral vars already done in central run-virt.sh so (diff)
downloadcore-f405d49cadc32bffe1f556fb42fc128647f88aca.tar.gz
core-f405d49cadc32bffe1f556fb42fc128647f88aca.tar.xz
core-f405d49cadc32bffe1f556fb42fc128647f88aca.zip
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
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg3
-rw-r--r--os-plugins/plugins/vmchooser/files/run-virt.sh2
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/Distro/Suse.pm3
-rw-r--r--os-plugins/plugins/vmware/files/run-virt.include2
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"