Hallo,
ich benutze VDR4YOU und es läuft gut....habe leider nur noch ein Propblem
ich benutze eine FuSie DVB-C mit analog-modul
um Ton mit VDR zu haben mass der Analog-Modul richtig erkannt werden, dafür habe ich ein Script HIER gefunden:
#! /bin/bash
/sbin/modprobe -q dvb-ttpci
while dmesg | tail -n 15 | grep "w/o analog" > /dev/null ; do
/sbin/modprobe -r -q dvb-ttpci && /sbin/modprobe -q dvb-ttpci ;
done;
dieses script habe ich unter "/usr/bin/" als "analogcheck" geschpeichert.
wenn ich jetzt in console: analogcheck ausführe prüft dieses Script ob analog-modul erkannt ist, wenn nicht, dann prüft es noch mal...so lange bis das analog-modul erkannt ist.
nur ich weiß echt nicht wie ich es unter VDR4YOU einsetze damit es automatisch beim hochfahren gestartet wird
beim Rechner Hochfahren wird /etc/init.d/RCStart ausgeführt und die DVB Module werden gelden und danach VDR gestartet...
/etc/init.d/RCStart
#!/bin/bash
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
export NETCFGFILE="/etc/network/interfaces"
export SMBCFGFILE="/etc/samba/smb.conf"
export LC_ALL="de_DE@euro"
export LANG="C"
. /vdr/etc/sysconfig
##### bringt Farbe ins Spiel #####
# ANSI COLORS
CRE="[K"
MODULES="
evdev
videodev
v4l1_compat
v4l2_common
video_buf
dvb_core dvb_shutdown_timeout=0
ves1x93
stv0299
ves1820
tda1004x
cx24110
mt312
saa7146
saa7146_vv
ttpci_eeprom
dvb_ttpci vidmode=$VIDMODE
#b2c2-flexcop-pci
#budget_core
#budget
#budget_ci
#budget_av
#skystar2
#cinergyT2
#Twinhan
#bttv i2c_hw=1 card=0x71
#dvb-bt8xx
#dst dst_type=0
"
###### unterdrücken der Meldungen durch execute... #####
execute() {
OLDIFS=$IFS
IFS=""
echo $* >/dev/tty13 2>/dev/tty13
$* >/dev/tty13 2>/dev/tty13
IFS=$OLDIFS
}
function switchBool()
{
if [ "$1" == "yes" ]
then
echo "$2"
elif [ "$1" == "no" ]
then
echo "$3"
fi
}
echo "${CRE}"
progress() {
i=0
total=80
line=5
let t=$1*$total/100
while [ $i -lt $t ]; do
echo -n -e "\033[$line;${i}H"
echo -n -e "\033[44;32m \033[0m"
echo -n -e "\033[$(($line+1));0H"
echo -n -e "\033[2K"
echo -n $2
let i=$i+1
done
}
loadmodule() {
execute modprobe $*
}
loaddriver() {
OLDIFS=$IFS
IFS=$'\t'$'\n'
for module in $MODULES; do
IFS=$OLDIFS
if [ -n "${module##\#*}" ]; then
grep -w "^${module%% *}" /proc/modules >/dev/null 2>/dev/null
if [ "$?" == "1" ]; then
loadmodule $module
fi
fi
IFS=$'\t'$'\n'
done
IFS=$OLDIFS
}
clear
stty onlcr
##### virtuelle Laufwerke erstellen und mounten #####
progress 5 "mounte virtuelles System"
execute /etc/init.d/mountvirtfs start
##### bootlog starten #####
progress 10 "bootlogd"
execute /etc/init.d/bootlogd start
##### graphlcd für boot laden ##### pero##
##progress 17 "graphlcd"
##if [ x$LCD = x"graphlcd" ]; then
## execute /vdr/etc/plugins/graphlcd/start/start.sh
##fi
##### Tastaturlayout laden #####
progress 20 "keymap"
execute loadkeys de-latin1-nodeadkeys &
##### hdparm #####
progress 25 "Drive Settings"
for drive in /proc/ide/hd?; do
media=`cat $drive/media`
device="/dev/`basename $drive`"
case "$media" in
"disk")
if [ x$DMA_HDD == x"yes" ]; then
execute hdparm -d1 -u1 -c1 $device
fi
;;
"cdrom")
if [ x$DMA_CD == x"yes" ]; then
execute hdparm -d1 -u1 -c1 $device
fi
if [ $[$CDMAXSPEED+0] -gt 0 ]; then
execute hdparm -E $CDMAXSPEED $device
fi
;;
esac
done
##### root checken #####
progress 30 "checkroot"
execute /etc/init.d/checkroot.sh start
##### Bootsplash auf dem Ferneher ausgeben #####
if [ x$STARTSCREEN == x"yes" ]; then
progress 35 "Startscreen"
loaddriver
execute /usr/bin/mplayer -vo mpegpes $BOOTMOVIE -loop 0 &
fi
##### uhrzeit setzen
progress 35 "Uhrzeit setzen"
case "$SHUTDOWNSCRIPT" in
##### nvram #####
"/usr/bin/vdrshutdown")
execute hwclock -s --localtime
;;
##### acpi oder settime muss in der poweroff.pl dann noch eingestellt werden ####
"/usr/bin/poweroff.pl")
execute /usr/bin/correcttime.sh
;;
##### extb-board #####
"/usr/bin/extb-poweroff.pl")
execute hwclock -s --localtime
;;
#### zur sicherheit #####
*)
execute hwclock -s --localtime
;;
esac
##### netzwerk cleanen #####
progress 40 "ifupdown-clean"
execute /etc/init.d/ifupdown-clean start
#### create ramdisk #####
if [ x$RAMDISK_SIZE != x ]; then
if [ $[$RAMDISK_SIZE+0] -lt 16 ]; then
RAMDISK_SIZE=16
fi
else
RAMDISK_SIZE=16
fi
execute mount -t tmpfs -o size=${RAMDISK_SIZE}M /dev/shm /ramdisk
execute cp -a /var/cache/ramdisk/* /ramdisk
execute echo -n > /var/log/wtmp
execute echo -n > /var/run/utmp
execute echo -n > /var/log/lastlog
execute mkdir -p /ramdisk/vtx
execute mkdir -p /ramdisk/samba
execute mkdir -p /ramdisk/vdrconvert
##### logging #####
progress 50 "syslog starten"
if [ x$RINGBUFFER_SYSLOG = x"no" ]; then
execute /etc/init.d/sysklogd start
else
execute syslogd -C
execute log
echo "HINT: VDR is using the busybox syslogd." > /var/log/messages
echo "Type logread to see syslog messages." >> /var/log/messages
fi
##### module laden #####
progress 55 "module-init-tools"
execute /etc/init.d/module-init-tools start &
progress 57 "modutils"
execute /etc/init.d/modutils start &
progress 59 "libdevmapper" &
execute /etc/init.d/libdevmapper1.01 start &
##### laufwerke prüfen #####
progress 60 "checkfs"
execute /etc/init.d/checkfs.sh start
progress 65 "setserial"
execute /etc/init.d/etc-setserial start &
execute /etc/init.d/procps.sh start &
##### Videoverzeichnis setzen #####
if [ x$VIDEO0VERZEICHNIS != x ]; then
execute mount $VIDEO0VERZEICHNIS /media
fi
progress 65 "mountall"
execute /etc/init.d/mountall.sh start
progress 65 "discover"
execute /etc/init.d/discover start
echo "${CRE}"
progress 70 "Netzwerk vorbereiten"
execute /etc/init.d/dns-clean start
if [ -n "$HOSTNAME" ]; then
rm -f /etc/hostname
echo "$HOSTNAME" >> /etc/hostname
fi
execute hostname -F /etc/hostname
execute ifconfig lo 127.0.0.1 up
##### Netzwerk anhand der sysconfig anpassen #####
case "$NETWORK" in
########################LAN################################################################################
"LAN")
progress 80 "starting Wired Network"
modprobe `basename $LAN_NETWORK_DRIVER`
if [ $? != 0 ]; then
echo "... Bitte den LAN-Netzwerktreiber i.d Settings anpassen starting Hotplug"
#####hotplug starten, evtl kommt dadurch der netzwerktreiber#####
#### leider funktioniert das nicht ####
(sleep 35 && svdrpsend.pl MESG "Bitte den LAN-Netzwerktreiber i.d Settings anpassen"
echo "Bitte den LAN-Netzwerktreiber i.d Settings anpassen") &
execute /etc/init.d/hotplug start
execute /etc/init.d/hotplug-net start
fi
if [ x$LAN_USE_DHCP = x"yes" ]; then
execute udhcpc -i eth0 -b -H `hostname`
if [ $? != 0 ]; then
(sleep 30 && svdrpsend.pl MESG "keine IP-Adresse via DHCP erhalten") &
echo "keine IP-Adresse via DHCP erhalten"
fi
elif [ -n "$LAN_IP" ]; then
if test -f $NETCFGFILE; then
rm -f $NETCFGFILE
fi
touch $NETCFGFILE
#echo "" >> $NETCFGFILE
echo "auto eth0" >> $NETCFGFILE
echo "iface eth0 inet static" >> $NETCFGFILE
echo "address $LAN_IP" >> $NETCFGFILE
echo "netmask $LAN_MASK" >> $NETCFGFILE
echo "gateway $LAN_GATEWAY" >> $NETCFGFILE
echo "dns-search $HOSTNAME" >> $NETCFGFILE
if [ -n "$LAN_NAMESERVER1" ]; then
rm -f /etc/resolv.conf
touch /etc/resolv.conf
echo "search $DOMAIN" >> /etc/resolv.conf
if [ -n "$LAN_NAMESERVER1" ]; then
echo "nameserver $LAN_NAMESERVER1" >> /etc/resolv.conf
fi
if [ -n "$LAN_NAMESERVER2" ]; then
echo "nameserver $LAN_NAMESERVER2" >> /etc/resolv.conf
fi
if [ -n "$LAN_NAMESERVER3" ]; then
echo "nameserver $LAN_NAMESERVER3" >> /etc/resolv.conf
fi
fi
ifconfig eth0 $LAN_IP up
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "Netzwerk konnte nicht gestartet werden") &
fi
if [ -n "$LAN_GATEWAY" ]; then
execute route add default gw $LAN_GATEWAY
fi
else
echo "...Bitte die IP in den Settings anpassen "
(sleep 35 && svdrpsend.pl MESG "Bitte die IP in den Settings anpassen") &
fi
if [ x$START_SSHD != x"no" ]; then
sshd
fi
portmap
;;
########################W-LAN##############################################################################
"WLAN")
progress 80 "starting Wireless Network"
if [ -n "${WLAN_DOMAIN}${WLAN_NAMESERVER1}" ]; then
rm -f /etc/resolv.conf
if [ -n "$WLAN_DOMAIN" ]; then
echo "search $WLAN_DOMAIN" > /etc/resolv.conf
fi
if [ -n "$WLAN_NAMESERVER1" ]; then
echo "nameserver $WLAN_NAMESERVER1" >> /etc/resolv.conf
fi
if [ -n "$WLAN_NAMESERVER1" ]; then
echo "nameserver $WLAN_NAMESERVER2" >> /etc/resolv.conf
fi
if [ -n "$WLAN_NAMESERVER3" ]; then
echo "nameserver $WLAN_NAMESERVER3" >> /etc/resolv.conf
fi
fi
exceute modprobe `basename $WLAN_NETWORK_DRIVER`
if [ $? != 0 ]; then
echo "...Bitte den W-LAN-Netzwerktreiber i.d. Settings anpassen starting Hotplug"
#####hotplug starten, evtl kommt dadurch der netzwerktreiber#####
(sleep 35 && svdrpsend.pl MESG "Bitte den W-LAN-Netzwerktreiber i.d. Settings anpassen") &
execute /etc/init.d/hotplug start
execute /etc/init.d/hotplug-net start
fi
ifconfig wlan0
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "Netzwerk konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
ip link set dev wlan0 up
if [ $WLAN_ADHOC = "no" ]; then
iwconfig wlan0 mode managed
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
else
iwconfig wlan0 mode ad-hoc
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
fi
iwconfig wlan0 essid $WLAN_SSID
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
iwlist wlan0 $WLAN_CHANNEL
iwconfig wlan0 power off
if [ $WLAN_WEP = "yes" ]; then
iwconfig wlan0 key $WLAN_WEP_KEY_0
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
else
iwconfig wlan0 key off
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
fi
if [ $WLAN_DHCP = "yes" ]; then
udhcpc -i wlan0 -b -H `hostname`
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
else
ifconfig wlan0 $WLAN_IP netmask $WLAN_MASK up
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
echo "W-LAN konnte nicht gestartet werden"
fi
fi
route add default gw $WLAN_GATEWAY
if [ x$START_SSHD != x"no" ]; then
sshd
fi
portmap
;;
########################AUS################################################################################
"AUS")
(sleep 35 && svdrpsend.pl MESG "Es wurde kein Netzwerk gestartet") &
echo "Netzwerk ist ausgeschaltet"
;;
########################???################################################################################
*)
;;
esac
echo "${CRE}"
##### Netzlaufwerke mounten #####
execute /usr/local/bin/personal_scripts.sh &
##### MYSQL starten #####
if [ $START_MYSQL = "yes" ]; then
execute /etc/init.d/mysql start &
fi
##### VDR starten #####
progress 85 "starting vdr"
execute /etc/init.d/Runvdr start &
##### Hotplug #####
if [ $HOTPLUG = "yes" ]; then
progress 95 "Starte Hotplug "
execute /etc/init.d/hotplug start
execute /etc/init.d/hotplug-net start
else
execute modprobe pci_hotplug
fi
execute /etc/init.d/bootmisc.sh start
execute /etc/init.d/urandom start
execute /etc/init.d/sudo start
progress 100 "done RCStart"
/etc/init.d/RCStart2
exit 0
Alles anzeigen
wo und was soll ich eintragen damit das script "/usr/bin/analogcheck" gestartet wird?
Danke im vorraus für Antwort
Mfg,
Osmanovic100