#!/bin/sh case "$1" in install) . /etc/init.d/rc.functions register_setting "GRAPHTFT_FE_ARGS" "-h localhost -r -f" "Argumente mit denen graphtft-fe gestartet wird" register_setting "VDR_PLUGIN_ARGS_graphtft" "$(test -e /usr/bin/Xorg && echo "-d none")" "Argumente für das graphtft plugin" #register_application "GraphTFT" "rungraphtft-fe" "-" cat >> /etc/vdr/setup.conf.add <<- EOF graphtft.Iso2Utf = 0 EOF #sed "s|\(\)|\t\n\1|" -i /etc/vdr/menu.xml # if [ -z "`grep "# graphTFT" /etc/vdr/commands.conf 2>/dev/null`" ]; then # cat /tmp/commands.conf >> /etc/vdr/commands.conf # fi ;; uninstall) ;; depend) echo "vdr" echo "xorg" echo "lib-imagemagick" echo "lib-av" test -e /etc/rc.config && echo "graphtft-theme" ;; *) echo "Usage $0 {install | uninstall | delend}" >&2 exit 1 esac