[mythtv-users] OT: Persistent DVB node

Nick Rout nick at rout.co.nz
Sat Jul 14 12:51:36 UTC 2007


Razza wrote:
>
>
> Unfortunately the dvb adaptors still load as 0 and 1 as opposed to 2
> and 3 as expected.
>
> HELP!!
>
>

Just thinking aloud, is it possibe to run a script after the modules
have loaded that detects which is what, then sets up some symlinks, so
that /dev/dvb/adaptor2 is always the DVB-S card and /dev/dvb/adaptor3 is
the DVB-T, then use the 2 and 3 devices in your myth configuration.

something like:

IF 

udevinfo -a -p $(udevinfo -q path -n /dev/dvb/adapter0/frontend0)|grep
01:06

THEN

ln -s /dev/dvb/adaptor0 /dev/dvb/adaptor2
ln -s /dev/dvb/adaptor1 /dev/dvb/adaptor3

ELSE

ln -s /dev/dvb/adaptor0 /dev/dvb/adaptor3
ln -s /dev/dvb/adaptor1 /dev/dvb/adaptor2

ENDIF


(no thats not in any particular language, just trying to show the logic
:-)  )




More information about the mythtv-users mailing list