#!/bin/sh # # hotplug for dvb adapter #logger "$*" `env` case "$ACTION" in add) . /etc/init.d/rc.functions if [ -z "${DEVNAME##dvb/adapter?/frontend?}" ]; then if ps | grep -v grep | grep -q "vdr -s"; then svdrpsend.sh "PLUG addons ASK $(tr 'New DVB device added. Would you restart the VDR?')" | grep -q yes && runvdr -q fi fi ;; remove) ;; esac