Startdateien (rcS start_neutrino...) anpassen

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
habjetztLinux
Interessierter
Interessierter
Beiträge: 89
Registriert: Sonntag 9. Februar 2003, 10:45

Startdateien (rcS start_neutrino...) anpassen

Beitrag von habjetztLinux »

Ich hab grade mal geguckt, wo die Infos stehen, was in die Dateien reinkommt, bin allerding nicht fündig geworden. :(

Kann da mal bitte jemand die nun im Einstellungsmenü gegebenen Möglichkeiten für SPTS usw. mit einfügen ?

das Menü erstellt bzw. löscht ja die Dateien

.hw_sections
.spts_mode
usw.
im /var/etc Verzeichnis

also statt:

modprobe avia_gt

das hier:

if [ -e /var/etc/.hw_sections ]; then
modprobe avia_gt hw_sections=0
else
modprobe avia_gt
fi

usw.



Danke im Voraus

habjetztLinux
DieMade
Oberlamer, Administrator & Supernanny
Beiträge: 10532
Registriert: Samstag 13. Juli 2002, 10:49

Beitrag von DieMade »

Was genau möchtest Du? Ich werde aus der Anfrage nicht schlau.
There are 10 types of people in the world: those who know binary and those who don't
habjetztLinux
Interessierter
Interessierter
Beiträge: 89
Registriert: Sonntag 9. Februar 2003, 10:45

Beitrag von habjetztLinux »

In den Einstellungen gibt es die Möglichkeit hw_sectioning, spts_mode usw. übers Menü einzustellen. Allerding ist diese Einstellung sinnlos, solange sich in den Startdateien nichts ändert.

Wenn da nicht abgefragt wird, ob jetzt z.B die Datei .hw_sections in /var/etc existiert und dementsprechend z.B. die avia_gt mit oder ohne die Option hw_sections=0 gestartet wird kann man im Menü einstellen was man will, aber es ändert sich nichts.

Ich hoffe das war soweit verständlich.

Ich habe gerade gesehen, dass die Datei rcS im cdk steht.

Kann man die mal wie folgt ändern:
#!/bin/sh

PATH=/sbin:/bin

hostname -F /etc/hostname
mount -a
ifup -a

test -x /sbin/inetd && inetd

if test -x /sbin/sshd ; then
/etc/init.d/start_sshd &
fi

touch /etc/modules.conf
depmod -ae
modprobe tuxbox

. /etc/profile

VENDOR=`/bin/tuxinfo -V`
VENDOR_ID=`/bin/tuxinfo -v`
MODEL=`/bin/tuxinfo -M`
MODEL_ID=`/bin/tuxinfo -m`
SUBMODEL=`/bin/tuxinfo -S`
SUBMODEL_ID=`/bin/tuxinfo -s`

echo "Detected STB:"
echo " Vendor: $VENDOR"
echo " Model: $MODEL $SUBMODEL"

modprobe dvb-core

# D-BOX2
if [ $MODEL_ID -eq 1 ]; then

# I2C core
modprobe dbox2_i2c
modprobe dvb_i2c_bridge

# Frontprozessor
modprobe dbox2_fp
modprobe dbox2_fp_input

# Frontends
# Nokia
if [ $VENDOR_ID -eq 1 ]; then
modprobe ves1820
modprobe ves1x93 board_type=1
# Philips
elif [ $VENDOR_ID -eq 2 ]; then
modprobe tda8044h
# Sagem
elif [ $VENDOR_ID -eq 3 ]; then
modprobe at76c651
modprobe ves1x93 board_type=2
fi

# Misc IO
modprobe avs
modprobe saa7126
# Philips
if [ $VENDOR_ID -eq 2 ]; then
modprobe cam mio=0xC040000
else
modprobe cam mio=0xC000000
fi
modprobe lcd

# A/V

if [ -e /var/etc/.hw_sections ]; then
modprobe avia_gt ucode=/var/tuxbox/ucodes/ucode.bin hw_sections=0
else
modprobe avia_gt ucode=/var/tuxbox/ucodes/ucode.bin
fi;

modprobe avia_gt_fb
modprobe avia_gt_lirc
modprobe avia_gt_oss
modprobe avia_gt_v4l2
modprobe avia_av

modprobe avia_napi
modprobe cam_napi
modprobe avia_av_napi
if [ -e /var/etc/.spts_mode ]; then
modprobe avia_gt_napi mode=1
modprobe dvb2eth
else
modprobe avia_gt_napi
fi;
modprobe dbox2_fp_napi

# Dreambox
elif [ $MODEL_ID -eq 2 ]; then

# I2C core
# modprobe dvb_i2c_bridge

# Frontprozessor
modprobe dreambox_fp

# Frontends
modprobe alps_bsru6
# modprobe alps_tdme7
modprobe philips_1216

# Misc IO
modprobe ir-hw
modprobe dreambox_rc_input
modprobe avs
modprobe lcd

# A/V
modprobe stb_td
modprobe stb_fb
modprobe stb_denc
modprobe stb_aud
modprobe stb_vg
modprobe stb_clip

fi

echo "$VENDOR $MODEL - Kernel %r (%t)." > /etc/issue.net

# compatibility links
ln -sf demux0 /dev/dvb/adapter0/demux1
ln -sf dvr0 /dev/dvb/adapter0/dvr1
ln -sf fb/0 /dev/fb0

test -x /bin/loadkeys && loadkeys /share/keymaps/i386/qwertz/de-latin1.kmap.gz

if [ -e /etc/init.d/rcS.local ]; then
. /etc/init.d/rcS.local
fi


Zuletzt geändert von habjetztLinux am Donnerstag 1. April 2004, 14:48, insgesamt 1-mal geändert.
Sagem D-BoxII Kabel 1xIntel AVIA600 Bmon1.3
DieMade
Oberlamer, Administrator & Supernanny
Beiträge: 10532
Registriert: Samstag 13. Juli 2002, 10:49

Beitrag von DieMade »

rcS im cdk ist nicht für images gedacht. Entsprechende Optionen gehören hier nach /etc/modules.conf, da hier mit modprobe gearbeitet wird.

In Images muß die rcS entsprechend angepasst werden, da hier i.d.R. insmod verwendet wird, welches /etc/modules.conf nicht auswertet.

Schau einfach mal in eines der letzten alexW-Images rein, dann wirst Du erkennen, daß die init-scripte nicht 1:1 aus dem cvs übernommen werden können.
There are 10 types of people in the world: those who know binary and those who don't