diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh b/os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh index 8960de74..7f1ae20d 100644 --- a/os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh +++ b/os-plugins/plugins/vmchooser/init-hooks/40-started-hw-config/run-virt.sh @@ -1,3 +1,21 @@ +# Copyright (c) 2009 - RZ Uni Freiburg +# Copyright (c) 2009 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# Stage3 part of 'vmchooser' plugin - this script detects additionally to the +# the standard hardware configuration the availability of optical and floppy +# drives for virtual machines. +# +# The script is included from init via the "." load function - thus it has all +# variables and functions available. + waitfor /tmp/hwcfg -hwinfo --cdrom | grep -i "Device File:" | awk {'print $3'} >/etc/hwinfo.cdrom & -hwinfo --floppy | grep -i "Device File:" | awk {'print $3'} >/etc/hwinfo.floppy & +( hwinfo --cdrom | grep -i "Device File:" | awk {'print $3'} >/etc/hwinfo.cdrom ) & +( hwinfo --floppy | grep -i "Device File:" | awk {'print $3'} >/etc/hwinfo.floppy ) & |