summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/pvs/XX_pvs.sh
blob: 9a86574f89aaef6a4d71539d691d0d9102785bec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) 2009..2010 - RZ Uni Freiburg
# Copyright (c) 2009..2010 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your feedback to feedback@openslx.org
#
# 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

# Check if the plugin config directory is generally available or if the client
# configuration failed somehow
[ -d /initramfs/plugin-conf ] || error "${init_picfg}" nonfatal

# main script
if [ -e /initramfs/plugin-conf/pvs.conf ]; then
  . /initramfs/plugin-conf/pvs.conf
  if [ $pvs_active -ne 0 ]; then
    [ $DEBUGLEVEL -gt 0 ] && echo "executing the 'pvs' os-plugin ...";
    # location of central pvs configuration files
    testmkdi /mnt/etc/openslx/pvs

    # add it to the Xserver script (?)

    # link the executables
    #for tool in poolVS poolVSClient VNCwrapper ; do
    #  ln -s /opt/openslx/plugin-repo/pvs/${tool} /mnt/var/X11R6/bin/${tool}
    #done

    # write config file
    #echo "# parameters generated by $0" > /mnt/etc/pvs/pvs.conf
    #echo "pvs_PARAMS=\"$PARAMS\"" >> /mnt/etc/pvs/pvs.conf
    #echo "pvs_X11=\"$pvs_X11\"" >> /mnt/etc/pvs/pvs.conf

    [ $DEBUGLEVEL -gt 0 ] && echo "done with 'pvs' os-plugin ...";

    fi
  fi
else
  [ $DEBUGLEVEL -gt 2 ] && \
    echo "No configuration file found for pvs plugin."
fi