From c257247307e4ba5a202654dd8d9b82b4067df9bc Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 8 Mar 2011 16:19:14 +0100 Subject: add config option for pvs support in vmchooser --- .../plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm | 11 +++++++++++ src/os-plugins/plugins/vmchooser/XX_vmchooser.sh | 5 +++++ 2 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm index 71ce3637..134ead6d 100644 --- a/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm +++ b/src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm @@ -65,6 +65,17 @@ sub getAttrInfo content_descr => '1 means active - 0 means inactive', default => '1', }, + 'vmchooser::pvs' => { + applies_to_systems => 1, + applies_to_clients => 1, + description => unshiftHereDoc(<<' End-of-Here'), + start pvs config on default + End-of-Here + #TODO: + content_regex => qr{^(0|1)$}, + content_descr => '1 means active - 0 means inactive', + default => '0', + }, 'vmchooser::env' => { applies_to_systems => 1, applies_to_clients => 1, diff --git a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh index f1f9517d..71852896 100644 --- a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh +++ b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh @@ -51,6 +51,11 @@ if [ -e $CONFFILE ]; then mkdosfs ${PLUGINCONFDIR}/loopimg/fd.img >/dev/null 2>&1 #|| error mount -n -t msdos -o loop,umask=000 ${PLUGINCONFDIR}/loopimg/fd.img \ ${PLUGINCONFDIR}/fd-loop + + if [ $vmchooser_pvs -ne 0 ]; then + sed -i /mnt/usr/share/xsessions/default.desktop \ + -e "s,vmchooser$,vmchooser --pvs," + fi # finished ... [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ..." -- cgit v1.2.3-55-g7522