#!/bin/bash
#
source /etc/conf.d/vdr.admin.cfg
source /etc/conf.d/vdr

logger -s "ADMIN - GUI: $GUI"

if [ "$GUI" = "Aus" ] ; then
   rc-update del freevo
   rc-update del checkfg
   rc-update del xdm
elif [ "$GUI" = "FreeVo" ]  ; then
   rc-update add freevo default
   rc-update del xdm
   rc-update add checkfg default
   $SETVAL PLG_swcon 02
   logger -s "Untersuche Audio und Videoverzeichnis - kann lange dauern !"
   freevo cache
elif [ "$ACPI" = "KDE" ]  ; then
   rc-update del freevo
   rc-update add xdm default
   rc-update add checkfg default
else
   echo "Unknown GUI parameter $1"
   exit 1
fi
exit 0
