Scripting

Myth TVDVB Setup

  1. Make file with your dvb modules in it ( vi /etc/init.d/localdvb )

#!/bin/sh
#
# Load DVB Modules
#
rmmod cx88_blackbird
modprobe v4l1-compat
modprobe v4l2-common
modprobe video-buf
modprobe dvb-core
modprobe cx88_dvb
modprobe saa7146
modprobe saa7146_vv

#Drivers I don't think I need.
#modprobe ttpci-eeprom
#modprobe dvb-ttpci-budget
#modprobe dvb-ttpci-budget-ci
#modprobe grundig_29504-401
#modprobe tda1004x

  1. Link this to runlevel ( ln -s /etc/init.d/localdvb /etc/rc2.d/S98localdvb)
  2. Make it executable (chmod +x /etc/init.d/localdvb )
  3. Edit /etc/modprobe.conf to include the following lines
# DVB Setup
alias char-major-81 cx88_dvb
  1. Configure Udev with correct permissions ( vi /etc/udev/rules.d/10-local.rules )

KERNEL=="dvb/*", MODE="0666", GROUP="mythtv"
KERNEL=="dvb", MODE="0666", GROUP="mythtv"
KERNEL=="dvb/adapter*", MODE="0666", GROUP="mythtv"
KERNEL=="dvb*", PROGRAM=="/etc/udev/scripts/dvb.sh %k", NAME="%c", MODE="0666", GROUP="mythtv"