blob: 142f7c26bbf232d29bfd36afd29aa6e978065108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/bash
#/usr/bin/load-modules-mythvantage.sh UNLOAD LCD
. /etc/systemconfig
case $1 in
UNLOAD|unload )
MODULELIST=`grep /etc/modules.mythvantage $2`
for i in $MODULELIST
do
/sbin/rmmod $i
done
;;
*) echo "- Loading MythVantage-modules"
#try to load the cx88 modules
if [ ! x$SystemType = xFrontend_only ]
then
/sbin/modprobe cx88-dvb 2>/dev/null
fi
if [ -f /etc/modules.mythvantage ]
then
while read line
do
module=`echo $line |cut -d# -f1`
#this doesn't do anything on boot cause ttySX does not yet exisit
if [ x$module = xlirc_serial ]
then
if [ x$ReceiverType = xSerial ]
then
case $ReceiverSerialport in
ttyS0) FLAGS="io=0x3f8 irq=4";;
ttyS1) FLAGS="io=0x2f8 irq=3" ;;
ttyS2) FLAGS="io=0x3e8 irq=4" ;;
ttyS3) FLAGS="io=0x2f8 irq=3" ;;
esac
/usr/bin/setserial /dev/$ReceiverSerialport uart none 2>/dev/null
/sbin/modprobe lirc_serial $FLAGS 2>/dev/null
fi
fi
/sbin/modprobe $module 2> /dev/null
done < /etc/modules.mythvantage
fi
esac
|