#!/bin/sh case "$1" in install) . /etc/init.d/rc.functions if apm l | grep xineliboutput ; then update_setting "VDR_PLUGIN_ARGS_xineliboutput" "$VDR_PLUGIN_ARGS_xineliboutput --post dfatmo:driver=serial,driver_param=/dev/ttyUSB0" fi cat >> /etc/vdr/setup.conf.add <<- EOF dfatmo.driver = serial dfatmo.driver_param = dfatmo.driver_path = /usr/lib/dfatmo/drivers dfatmo.edge_weighting = 60 dfatmo.enabled = 1 EOF ;; uninstall) ;; depend) echo "vdr" echo "usb" ;; *) echo "Usage $0 {install | uninstall | depend}" >&2 exit 1 esac