oscam: start userspace DVB drivers before oscam

This commit is contained in:
Stefan Saraev 2012-06-10 23:11:07 +03:00
parent 11edeb0c71
commit a63a72bd94

View File

@ -79,6 +79,13 @@ if [ ! "$(pidof oscam)" ]; then
if [ -f "$LOCKDIR/$LOCKFILE" ] ; then
break
fi
# start userspace DVB driver/addon
for driver_dvb in $(find /storage/.xbmc/addons/driver.dvb.*/bin/userspace-driver.sh -type f 2>/dev/null); do
driver_dvb_name=$(echo $driver_dvb | awk 'BEGIN {FS="/"} {printf("%s", $5)}')
logger -t OSCAM "### Loading userspace DVB driver: $driver_dvb_name ###"
# use ". " because of variable export
. $driver_dvb
done
LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" oscam $OSCAM_ARG > /dev/null 2>&1
sleep 1
done &