#!/bin/bash
MYPARAM=$1
. /usr/share/groovix/global.conf  > /dev/null 2>&1
if [ -z "$MYPARAM" ] ; then
        echo "usage: $0 GX_PARAMETER" 
        echo "This will output the value of the desired parameter." 
	echo "Here  is a list of all currently defined Groovix parameters from groovix.conf :"
	cat /etc/groovix/groovix.conf | perl -ni -e ' print unless (/^\s*#|^\s*$/)'
	exit 0
fi
echo ${!MYPARAM}
