#!/bin/sh case "$1" in install) . /etc/init.d/rc.functions register_setting "VDR_PLUGIN_ARGS_softhddevice" "-f" "Ausgabedevice festlegen" register_application "softhddevice" "startapp -f" "xorg" if [ -z "$VDR_PLUGIN_ORDER" -o -n "${VDR_PLUGIN_ORDER##*softhddevice*}" ]; then update_setting "VDR_PLUGIN_ORDER" "$VDR_PLUGIN_ORDER softhddevice" fi cat >> /etc/vdr/setup.conf.add <<- EOF softhddevice.AudioSoftvol = 1 softhddevice.BlackPicture = 1 softhddevice.MakePrimary = 1 softhddevice.Suspend.Close = 1 EOF ;; uninstall) . /etc/init.d/rc.functions unregister_application "softhddevice" ;; depend) echo "vdr" echo "alsa" echo "xorg" echo "lib-av" ;; *) echo "Usage $0 {install | uninstall | depend}" exit 1 esac