diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/XX_vmchooser.sh | 21 |
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 |