#!/bin/sh USBDEV=$(lsusb | grep 2659: -c) if [ "$USBDEV" != "0" ]; then if [ ! -e /sundtek ]; then mkdir /sundtek cd /sundtek wget http://sundtek.de/media/sundtek_netinst.sh sh sundtek_netinst.sh -service -easyvdr fi; if [ -e /opt/bin/mediasrv ]; then cd /opt/bin # this will continue once all the devices are initialized ./mediasrv -d --wait-for-devices fi; export LD_PRELOAD=/opt/lib/libmediaclient.so fi /usr/bin/tvheadend -c /config -C