#!/bin/bash # Probably needs bash somewhere # ----------------------------------------------------------------------------- # # Copyright (c) 2007..2018 bwLehrpool-Projektteam # # This program/file is free software distributed under the GPL version 2. # See https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html # # If you have any feedback please consult https://bwlehrpool.de and # send your feedback to bwlehrpool@hs-offenburg.de. # # General information about bwLehrpool can be found at https://bwlehrpool.de # # ----------------------------------------------------------------------------- # xmlfilter.sh # - This script is invoked by the vmchooser tool. It simply filters xml- # files (taking the path to these files in $1). You might modify it in any # way to match your needs, e.g. ask some database instead. You can re- # implement it in any other programming language too. You simply have to # return a list of proper xml files to be interpreted by the vmchooser # binary). Please check for vmchooser.sh too ... # ----------------------------------------------------------------------------- # This script . # # currently: # - filter for slxgrp (which comes from /etc/machine-setup) # # include default directories . /opt/openslx/config if [ -f "${OPENSLX_DEFAULT_CONFDIR}/plugins/vmchooser/vmchooser.conf" ]; then . "${OPENSLX_DEFAULT_CONFDIR}/plugins/vmchooser/vmchooser.conf" fi function handlePersistentVM() { if grep --extended-regexp -q "