summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/files/run-virt.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-03 21:47:20 +0100
committerDirk von Suchodoletz2009-03-03 21:47:20 +0100
commit56e578c4af12fd077dbe2763be07e877849932e1 (patch)
tree0fdd61b988e2f4ab23eb6bae867a4e7d4db052ae /os-plugins/plugins/vmchooser/files/run-virt.sh
parentadding attr xserver::driver to override the driver of gfxcards (diff)
downloadcore-56e578c4af12fd077dbe2763be07e877849932e1.tar.gz
core-56e578c4af12fd077dbe2763be07e877849932e1.tar.xz
core-56e578c4af12fd077dbe2763be07e877849932e1.zip
Rearranging init-hooks to add a special network bridge hook.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2664 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r--os-plugins/plugins/vmchooser/files/run-virt.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh
index 005bf8f8..c699cc2a 100644
--- a/os-plugins/plugins/vmchooser/files/run-virt.sh
+++ b/os-plugins/plugins/vmchooser/files/run-virt.sh
@@ -21,11 +21,11 @@
# Sanity checks
###############################################################################
-# check for running in graphical environment otherwise no much use here
+# Theck for running in graphical environment otherwise no much use here
[ -z "$DISPLAY" ] && echo -e "\n\tStart only within a graphical desktop!\n" \
&& exit 1
-# test if the xml path/file is valid (gotten via commandline first parameter)
+# Test if the xml path/file is valid (gotten via commandline first parameter)
xml=$1
[ -e "${xml}" ] || { echo -e "\n\tNo XML file given!\n"; exit 1; }
@@ -122,7 +122,7 @@ filecheck ()
noimage=$(echo ${filecheck} | grep -i "no such file or directory" | wc -l)
rightsfile=${diskfile}
- # check if link
+ # Check if link
if [ -L "${diskfile}" ]; then
# take link target
rightsfile=$(ls -lh ${diskfile} 2>&1 | awk -F "-> *" '{print $2}')
@@ -130,7 +130,7 @@ filecheck ()
filecheck=$(LANG=us ls -lh ${rightsfile} 2>&1)
fi
- # does file exist
+ # Does file exist
if [ "${noimage}" -ge "1" ]; then
writelog "Virtual Machine Image Problem:\c "
writelog "\tThe image you've specified doesn't exist."
@@ -141,7 +141,7 @@ filecheck ()
exit 1
fi
- # readable by calling user
+ # Readable by calling user
if ! [ -r "${diskfile}" >/dev/null 2>&1 \
-o -r "${diskfile}" >/dev/null 2>&1 ]; then
writelog "Vmware Image Problem:\c "
@@ -152,7 +152,7 @@ filecheck ()
exit 1
fi
- # writable (for persistent-mode)?
+ # Writable (for persistent-mode)?
if ! [ -w "${diskfile}" >/dev/null 2>&1 \
-o -w "${diskfile}" >/dev/null 2>&1 ] \
&& [ "${np}" = "independent-persistent" ]; then