summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-03-08 16:19:14 +0100
committerSebastian Schmelzer2011-03-08 16:19:14 +0100
commitc257247307e4ba5a202654dd8d9b82b4067df9bc (patch)
tree241f98e748e7d5cc191412ef11cb776443880a4a /src
parentadd new vmchooser with xmlfilter support (diff)
downloadcore-c257247307e4ba5a202654dd8d9b82b4067df9bc.tar.gz
core-c257247307e4ba5a202654dd8d9b82b4067df9bc.tar.xz
core-c257247307e4ba5a202654dd8d9b82b4067df9bc.zip
add config option for pvs support in vmchooser
Diffstat (limited to 'src')
-rw-r--r--src/os-plugins/plugins/vmchooser/OpenSLX/OSPlugin/vmchooser.pm11
-rw-r--r--src/os-plugins/plugins/vmchooser/XX_vmchooser.sh5
2 files changed, 16 insertions, 0 deletions
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 ..."