diff options
author | Volker Uhrig | 2007-04-16 12:21:37 +0200 |
---|---|---|
committer | Volker Uhrig | 2007-04-16 12:21:37 +0200 |
commit | b7f3099ffd5db2a514e1970f721531da0d2f0500 (patch) | |
tree | 8edcedf799ebb5b4f6b527665bedb1bfc5b0e13c /virtualization/templates | |
parent | added new test (diff) | |
download | core-b7f3099ffd5db2a514e1970f721531da0d2f0500.tar.gz core-b7f3099ffd5db2a514e1970f721531da0d2f0500.tar.xz core-b7f3099ffd5db2a514e1970f721531da0d2f0500.zip |
- We can't avoid using masses of .desktop files for XDM... integrated
- `command` subtituded with $(command)
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@902 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'virtualization/templates')
-rw-r--r-- | virtualization/templates/runvmware-v2 | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/virtualization/templates/runvmware-v2 b/virtualization/templates/runvmware-v2 index 7cb2cff1..a34c588f 100644 --- a/virtualization/templates/runvmware-v2 +++ b/virtualization/templates/runvmware-v2 @@ -167,8 +167,8 @@ filecheck () -o -r "${diskfile}" >/dev/null 2>&1 ]; then writelog "Vmware Image Problem:\c" writelog "\tThe image you've specified has wrong rights." - writelog "Filecheck says:\t\t`echo ${filecheck} \ - | awk '{print $1" "$3" "$4}'` ${rightsfile}" + writelog "Filecheck says:\t\t$(echo ${filecheck} \ + | awk '{print $1" "$3" "$4}') ${rightsfile}" writelog "Hint:\t\t\tChange rights with: chmod a+r ${rightsfile}\n" exit 1 fi @@ -179,8 +179,8 @@ filecheck () && [ "${np}" = "independent-persistent" ]; then writelog "Vmware Image Problem:\c" writelog "\tThe image you've specified has wrong rights." - writelog "Filecheck says:\t\t`echo ${filecheck} \ - | awk '{print $1" "$3" "$4}'` ${rightsfile}" + writelog "Filecheck says:\t\t$(echo ${filecheck} \ + | awk '{print $1" "$3" "$4}') ${rightsfile}" writelog "Hint:\t\t\tUse nonpersistent-mode or change rights to rw\n" exit 1 fi @@ -364,15 +364,15 @@ EOL ## log script information writelog "##################################################\n" -writelog "# File created by $0 (v.${version})\n# on `date`\n" +writelog "# File created by $0 (v.${version})\n# on $(date)\n" writelog "##################################################\n" -writelog "Starting...`echo ${np} | sed -e \"s/i.*-//g\" \ - | tr [a-z] [A-Z]`-mode\n" +writelog "Starting...$(echo ${np} | sed -e \"s/i.*-//g\" \ + | tr [a-z] [A-Z])-mode\n" ## log disksetup writelog "Directories: \tTmpdir:\t\t${tmpdir}\n\tVMhome:\t\t${vmhome}\n\tTmpdir info:\ - \t`mount | grep -i "/tmp "`\n" + \t$(mount | grep -i "/tmp ")\n" ## configuring MAC address: first four bytes are fixed (00:50:56:0D) the ## last two bytes are taken from the local network adaptor @@ -424,7 +424,7 @@ writelog "finished\nResults:\n\tDiskfile:\t${diskfile} writelog "Linking \"ln -fs ${diskfile} \t${tmpdir}/disk\"...\c" ln -fs ${diskfile} ${tmpdir}/disk -writelog "finished\nResult:\n`ls -l ${tmpdir}/disk`\n" +writelog "finished\nResult:\n$(ls -l ${tmpdir}/disk)\n" # check if image exists, etc... filecheck @@ -467,8 +467,7 @@ writelog "finished\n" ### run vmplayer ############################################################### # ...with the automatically written config file -if [ `which vmplayer 2>/dev/null` ]; then - writelog "\nStarting VMplayer..." +if [ $(which vmplayer 2>/dev/null) ]; then writelog "\nStarting VMplayer..." # run VMplayer writelog "... vmplayer ${vmopt} ${confile}...\n" vmplayer ${vmopt} ${confile} 2>&1 >/dev/null |