summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmware/data')
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include13
1 files changed, 2 insertions, 11 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
index 3933287b..d9a47054 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
@@ -18,16 +18,7 @@
### configuration writer functions
################################################################################
-function clean_string ()
-{
- if [ "$#" -ge 1 ]; then
- echo "$@" | tr '[A-Z]' '[a-z]' | tr -d '\t _./'
- else
- cat - | tr '[A-Z]' '[a-z]' | tr -d '\t _./'
- fi
-}
-
-vmostype=$(clean_string "$vmostype")
+vmostype=$(rv_clean_string "$vmostype")
runvmwareconfheader ()
{
@@ -466,7 +457,7 @@ esac
sound="es1371"
# check for 3D configuration setting
-case "$(clean_string "$enable3d")" in
+case "$enable3d" in
true|yes)
enable3d="TRUE"
;;