summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/XX_vmchooser.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-06 10:35:09 +0200
committerDirk von Suchodoletz2008-08-06 10:35:09 +0200
commit7ff8a66fd6b0cad46405ecd0a505d3e6cde5dde4 (patch)
treef734ebe52eb0bda56faccd0b3c9911a63b027a4b /os-plugins/plugins/vmchooser/XX_vmchooser.sh
parentSmall dirty bug in XX_vmware.sh fixed (-p is unknown to testmkd) (diff)
downloadcore-7ff8a66fd6b0cad46405ecd0a505d3e6cde5dde4.tar.gz
core-7ff8a66fd6b0cad46405ecd0a505d3e6cde5dde4.tar.xz
core-7ff8a66fd6b0cad46405ecd0a505d3e6cde5dde4.zip
Formatting, unification of plugin stage3 scripts ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1965 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r--os-plugins/plugins/vmchooser/XX_vmchooser.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 1bc964d0..bdce3429 100644
--- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -1,5 +1,3 @@
-#!/bin/ash
-#
# Copyright (c) 2008 - RZ Uni Freiburg
# Copyright (c) 2008 - OpenSLX GmbH
#
@@ -11,15 +9,20 @@
#
# General information about OpenSLX can be found at http://openslx.org
#
+# script is included from init via the "." load function - thus it has all
+# variables and functions available
CONFFILE="/initramfs/plugin-conf/vmchooser.conf"
if [ -e $CONFFILE ]; then
- . $CONFFILE
- if [ $vmchooser_active -ne 0 ]; then
- [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'vmchooser' os-plugin ...";
- [ $DEBUGLEVEL -gt 0 ] && echo "copying default .desktop file ...";
- cp /mnt/opt/openslx/plugin-repo/vmchooser/default.desktop /mnt/etc/X11/sessions/
- [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ...";
- fi
+ . $CONFFILE
+ if [ $vmchooser_active -ne 0 ] ; then
+ [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'vmchooser' os-plugin ..."
+ [ $DEBUGLEVEL -gt 0 ] && echo "copying default .desktop file ..."
+ # we expect to have this directory to be interpreted by gdm/kdm
+ testmkd /mnt/etc/X11/sessions
+ cp /mnt/opt/openslx/plugin-repo/vmchooser/default.desktop \
+ /mnt/etc/X11/sessions/
+ [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ..."
+ fi
fi