1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies. Weitere Informationen

HowTo TuT: Kathrein912 - OSCam und Camd3 gleichzeitig im E2

Dieses Thema im Forum "Enigma2" wurde erstellt von vale, 16. April 2012.

  1. vale
    Offline

    vale Ist gelegentlich hier

    Registriert:
    1. August 2009
    Beiträge:
    87
    Zustimmungen:
    23
    Punkte für Erfolge:
    0
    Abwandlung von

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?



    Dies soll nur die Lösung für die 912 sein.
    Hinzugefügt wird noch das bei mir passende Packet zum Download + start.sh .


    Bekanntlich kann auf einer Kathrein mit E2 Image nur ein EMU rennen. Und bei den meisten Usern ist das natürlich OSCam.
    Da aber ORF und AustriaSat momentan per Keys erhellt werden können, und dies auf der Kathrein mit Camd3 am besten funzt, war bisher ein Switchen zwischen OSCam und Camd3 nötig, da OSCam alleine mittels Keys die "Ösis" nicht helle machen kann.

    Um Camd3 vor OSCam starten zu lassen, so daß letzendlich beide EMU rennen.

    1. start.sh bearbeiten / austauschen
    Denkt immer an ein Backup bevor ihr die Datei bearbeitet, falls eure Box nicht mehr Startet braucht ihr dieses.
    Ort: /var/etc/autostart/start.sh

    Der bereich welcher uns Interessiert,
    startBa #startAutofs
    startPlayer #startConfig, startFirmware, startBa
    startBootlogo cont #startAutofs, startPlayer
    /var/bin/camd3.902 /var/keys/camd3.config
    startEmu #startAutofs, startPlayer
    startReader

    Dort fügen wir die Zeile "/var/bin/camd3.902 /var/keys/camd3.config" ein, vor den Eintrag "startEMU".
    Somit startet Camd3 vor unseren 2. Emu.


    Code:
    #!/bin/sh
    . /var/etc/autostart/start-config
    . /sbin/start-function
    
    INPUT="$1"
    REBOOT="$2"
    SWTYPE="$3"
    model="$4"
    imagetype="$5"
    CMD="[start.sh]"
    MODDIR=/lib/modules
    
    case $debug in
        on|full)
            echo "$CMD [$INPUT] start"
            case $debug in full) set -x;; esac;;
    esac
    
    case $SWTYPE in
        "")
            if [ -e /usr/local/bin/neutrino ]; then
                SWTYPE="neutrino"
            elif [ -e /usr/local/bin/titan ]; then
                SWTYPE="titan"
            else
                SWTYPE="enigma2"
            fi;;
    esac
    
    case $model in "")    model=`cat /etc/model`;; esac
    case $model in ipbox910|ipbox900|ipbox91|ipbox9000)    ipbox="1";; esac
    
    if [ -e "/etc/.player179" ]; then player="179"; fi
    if [ -e "/etc/.player191" ]; then player="191"; fi
    if [ -e "/var/etc/.firstnet" ]; then firstnet="1"; fi
    if [ -e "/lib/modules/usbserial.ko" ]; then usbserial="1"; fi
    
    linuxver=`uname -a`; linuxver=${linuxver#*_}; linuxver=${linuxver%_*}
    
    case $INPUT in
        "")    
            echo "$CMD use start.sh <first|swap|e2|last|reboot|recovery|neutrino> <reboot> <swtype> <model>"
            exit;;
    esac
    
    startConfig()
    {
        echo "$CMD [$INPUT] startConfig"
    
        case $model in
            at700)
                hdmi="60:12m"
                embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000"
                display="stx7109c3.ko"
                avs="type=avs_none"
                mmeName="MPEG2_TRANSFORMER1"
                ci="cimax.ko"
                tuner="avl2108.ko"
                front="nuvoton.ko"
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
            at7000)
                hdmi="60:15m"
                case $linuxver in
                    stm23)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000";;
                    *)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000";;
                esac
                display="stx7109c3.ko"
                avs="type=stv6412"
                mmeName="MPEG2_TRANSFORMER1"
                ci="starci.ko"
                tuner="stv090x.ko"
                front="nuvoton.ko"
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
            at7500)
                hdmi="60:12m"
                embxmailbox="mailbox0=0xfe211000:136:set2 mailbox1=0xfe212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0x40000000:0x10000000"
                display="sti7105.ko"
                avs="type=stv6418"
                ci="starci.ko"
                tuner="avl2108.ko"
                front="nuvoton.ko";;
            skysat)
                hdmi="50:15m"
                embxmailbox="mailbox0=0xfe211000:136:set2 mailbox1=0xfe212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0x40000000:0x10000000"
                display="sti7111.ko"
                avs="type=avs_pio"
                ci="starci.ko"
                tuner="stv090x.ko paramDebug=0"
                front="nuvoton.ko paramDebug=0";;
            atemio500)
                hdmi="50:15m"
                embxmailbox="mailbox0=0xfe211000:136:set2 mailbox1=0xfe212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0x40000000:0x10000000"
                display="sti7111.ko"
                avs="type=avs_none"
                ci="starci.ko"
                tuner="stv090x.ko paramDebug=100"
                front="nuvoton.ko";;
            ufs910)
                case $SWTYPE in
                    neutrino) hdmi="50:8m";;
                    *)        hdmi="50:13640k";;
                esac
                case $linuxver in
                    stm22)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:137:set2"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0xa4000000:0x10000000";;
                    stm23)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:16:16:0:512:0xa4000000:0x10000000";;
                    stm24)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:137:set2"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0xa4000000:0x10000000";;
                esac
                display="stx7100.ko"
                avs=""
                mmeName="MPEG2_TRANSFORMER0"
                ci="cimax.ko"
                tuner="cx24116.ko"
                front="vfd.ko"
                case $HighSR in y) useHighSR="highSR=1";; esac
                case $swts in y) useswts="swts=1";; esac
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
            ufs912)
                hdmi="50:15m"
                embxmailbox="mailbox0=0xfe211000:136:set2 mailbox1=0xfe212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0x40000000:0x10000000"
                display="sti7111.ko"
                avs="type=stv6417"
                mmeName=""
                ci="ufs912_cic.ko"
                tuner="stv090x.ko bbgain="$bbgain""
                front="micom.ko"
                case $HighSR in y) useHighSR="highSR=1";; esac
                case $swts in y) useswts="swts=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac
                case $oldvideofw in y) useoldvideofw="useoldvideofw=1";; esac;;
            ufs922)
                hdmi="60:15m"
                case $linuxver in
                    stm23)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER0";;
                    *)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER1";;
                esac
                display="stx7109c3.ko"
                avs="type=stv6412"
                ci="ufs922_cic.ko"
                case $linuxver in
                    stm24)
                        tuner="avl2108.ko";;
                    *)
                        tuner="avl2108.ko usedTuner=2";;
                esac
                tunersec="cx21143.ko"
                front="micom.ko"
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
            tf7700)
                hdmi="60:15m"
                case $linuxver in
                    stm23)
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER0";;
                    *)
                        hdmi="60:15m"
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER1";;
                esac
                display="stx7109c3.ko"
                avs="type=stv6412"
                ci="starci.ko"
                tuner="cx24116.ko"
                front="tffp.ko"
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
            spark)
                hdmi="50:12m"
                embxmailbox="mailbox0=0xfe211000:136:set2 mailbox1=0xfe212000:0"
                embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0x40000000:0x10000000"
                display="sti7111.ko"
                avs="type=avs_pio"
                mmeName=""
                ci="encrypt.ko"
                tuner="stv090x.ko"
                front="vfd.ko"
                case $HighSR in y) useHighSR="highSR=1";; esac
                case $swts in y) useswts="swts=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac
                case $oldvideofw in y) useoldvideofw="useoldvideofw=1";; esac;;
            *)
                #ipbox91/900/910/9000
                case $linuxver in
                    stm24)
                        hdmi="50:12m"
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER1";;
                    stm23)
                        hdmi="50:15m"
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:1024:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER1";;
                    *)
                        hdmi="50:15m"
                        embxmailbox="mailbox0=0xb9211000:136:set2 mailbox1=0xb9212000:0"
                        embxshm="mailbox0=shm:0:7:0x60000000:0:256:256:0:512:0xa4000000:0x10000000"
                        mmeName="MPEG2_TRANSFORMER1";;
                esac
                display="stx7109c3.ko"
                case $model in
                    ipbox91) avs="type=fake_avs";;
                    *)  avs="type=stv6412";;
                esac
    
                case $linuxver in
                    stm24)
                        ci="starci.ko"
                        tuner="cx24116.ko"
                        front="micom.ko";;
                    *)
                        ci="starci.ko"
                        tuner="dummy.ko"
                        front="fp.ko";;
                esac
                case $HighSR in y) useHighSR="highSR=1";; esac
                case $swts in y) useswts="swts=1";; esac
                case $noaudiosync in y) usenoaudiosync="noaudiosync=1";; esac
                case $oldaudiofw in y) useoldaudiofw="useoldaudiofw=1";; esac;;
        esac
    
        case $SWTYPE in
            enigma2)    
                if  grep -q "config.av.videoport=HDMI" /etc/enigma2/settings; then
                    res=1280x720-32
                else
                    res=720x576-32
                fi;;
            neutrino)
                # mode 2 = pal/576i
                # mode 4 = 576p
                # mode 7 = 720p
                # mode 8 = 1080i
                # mode 10 = 1080p/24hz
                # mode 11 = 1080p/25hz
                mode=`grep -m1 "video_Mode=" /var/usr/local/share/config/neutrino.conf`; fastcut "$mode" "=" 2; mode="$fcr"
                case $mode in "") mode="2";; esac
    
                case $mode in
                    2|4)
                        res=720x576-32;;
                    *)
                        res=1280x720-32;;
                esac;;
            vdr)
                res=1280x720-32;;
            titan)
                if  grep -q "av_videomode=576i50" /var/etc/titan/titan.cfg; then
                    res=720x576-32
                elif  grep -q "av_videomode=pal" /var/etc/titan/titan.cfg; then
                    res=720x576-32
                else
                    res=1280x720-32                
                fi;;
        esac
    }
    
    startVfd()
    {
        echo "$CMD [$INPUT] startVfd" 
        insmod $MODDIR/e2_proc.ko
        insmod $MODDIR/$front
        echo "** AAF **" > /dev/vfd
        case $model in ufs922) insmod $MODDIR/fan_ctrl.ko;; esac
    }
    
    startTimeset()
    {
        echo "$CMD [$INPUT] startTimeset"
        case $model in
            tf7700) /bin/tffpctl --setgmtoffset;;  # Update the GMT offset in case it changed during the standby
            *)      date -s "197012122000";;
        esac
    }
    
    startCpufreq()
    {
        if [ -e "$MODDIR/cpu_frequ.ko" ]; then
            case $debug in on|full)    echo "$CMD [$INPUT] startCpufreq";;    esac
            insmod $MODDIR/cpu_frequ.ko
            case $pll0_ndiv_mdiv in 
                0) ;;
                *) echo $pll0_ndiv_mdiv > /proc/cpu_frequ/pll0_ndiv_mdiv;;
            esac
            case $pll1_ndiv_mdiv in 
                0) ;;
                *) echo $pll1_ndiv_mdiv > /proc/cpu_frequ/pll1_ndiv_mdiv;;
            esac
            case $pll1_fdma_bypass in 1) echo 1 > /proc/cpu_frequ/pll1_fdma_bypass;; esac
        fi
    }
    
    startAvs()
    {
        echo "$CMD [$INPUT] startAvs"
        insmod $MODDIR/avs.ko $avs
    }
    
    startBind()
    {
            case $SWTYPE in
                    enigma2)
                            case $model in
                                    ufs912|at700|at7000|spark)
                                            busybox mount -n --bind /var/usr/lib/python2.6 /usr/lib/python2.6
                                            busybox mount -n --bind /var/usr/lib/enigma2 /usr/lib/enigma2;;
                                    *)
                                            busybox mount -n --bind /lib/python2.6 /usr/lib/python2.6
                                            busybox mount -n --bind /lib/enigma2 /usr/lib/enigma2
    
                                            busybox mount -n --bind /var/usr/lib/enigma2/python/Plugins /usr/lib/enigma2/python/Plugins
                                            case $model in
                                                    at7500)
                                                            busybox mount -n --bind /lib/boot /var/etc/boot
                                                            busybox mount -n --bind /lib/imdbfolder /var/imdbfolder;;
                                                    esac;;
                    neutrino)
                            case $model in
                                    *)
                                            busybox mount -n --bind /var/usr/local/share/config /var/tuxbox/config
                                            busybox mount -n --bind /var/usr/local/share/iso-codes /share/iso-codes
                                            busybox mount -n --bind /var/usr/local/share/tuxbox /share/tuxbox
                                            busybox mount -n --bind /var/usr/local/share/fonts /share/fonts
                                            esac;;
                    titan)
                            case $model in
                                    at7500)
                                            busybox mount -n --bind /lib/boot /var/etc/boot
                                            busybox mount -n --bind /lib/imdbfolder /var/imdbfolder;;
                                            esac;;
                                    esac;;
                    esac
    }
    
    startFrameBuffer()
    {
        echo "$CMD [$INPUT] init stmfb"
        insmod $MODDIR/stmcore-display-$display
        insmod $MODDIR/stmfb.ko display0="$res"@"$hdmi":pal:yuv:yuv
        echo "$CMD [$INPUT] enable HDMI"
    
        if [ `cat /sys/class/stmcoredisplay/display0/hdmi0.0/name` == "SAFEMODE" ]; then
            echo "$CMD [$INPUT] enable SCART (576i)"
            res=720x576-32
            hdmi=`echo $hdmi | cut -d: -f1`"i:"`echo $hdmi | cut -d: -f2`
            rmmod stmfb.ko
            insmod $MODDIR/stmfb.ko display0="$res"@"$hdmi":pal:cvbs
            touch /tmp/.scart
        else
            if [ `cat /sys/class/stmcoredisplay/display0/hdmi0.0/name` == "UNKNOWN" ]; then
                case $ipbox in
                    1)
                        /bin/eeprom tvmode
                        TVMODE=$?
                        case "$TVMODE" in
                        0) echo "SD-PAL"
                            rmmod stmfb.ko
                            res=720x576-32
                            hdmi=`echo $hdmi | cut -d: -f1`"i:"`echo $hdmi | cut -d: -f2`
                            insmod $MODDIR/stmfb.ko display0="$res"@"$hdmi":pal:rgb:rgb
                            touch /tmp/.scart;;
                        1) echo "SD-NTSC";;
                        2) echo "720P-50";;
                        3) echo "720P-60";;
                        4) echo "1080I-50";;
                        5) echo "1080I-60";;
                        *) echo "Use default SD-PAL"
                            rmmod stmfb.ko
                            res=720x576-32
                            hdmi=`echo $hdmi | cut -d: -f1`"i:"`echo $hdmi | cut -d: -f2`
                            insmod $MODDIR/stmfb.ko display0="$res"@"$hdmi":pal:rgb:rgb
                            touch /tmp/.scart;;
                        esac;;
                    *)
                        echo "$CMD [$INPUT] HDMI UNKNOWN";;
                esac    
            fi
    #    else
    #        if [ "$res" = "720x576-32" ]; then
    #            echo "$CMD [$INPUT] enable HDMI (576i)"
    #            hdmi=`echo $hdmi | cut -d: -f1`"i:"`echo $hdmi | cut -d: -f2`
    #            rmmod stmfb.ko
    #            insmod $MODDIR/stmfb.ko display0="$res"@"$hdmi":pal:cvbs
    #        fi
        fi
    
    #enable premultiplied blend mode
        stfbset -p 
    
        insmod $MODDIR/stm_v4l2.ko
            
        > /tmp/.fbready
    }
    
    startPlayer()
    {
        echo "$CMD [$INPUT] init embx"
        insmod $MODDIR/embxshell.ko
        insmod $MODDIR/embxmailbox.ko $embxmailbox
        insmod $MODDIR/embxshm.ko $embxshm
        insmod $MODDIR/mme_host.ko transport0=shm
        insmod $MODDIR/mmelog.ko
    
        case $player in
            179) echo "$CMD [$INPUT] init player 179";;
            191) echo "$CMD [$INPUT] init player 191";;
            *)   echo "$CMD [$INPUT] init player 131";;
        esac
    
        case $model in
            at7500|ufs912|spark) echo "$CMD [$INPUT] skip mpeg2hw.ko";;
            *)             insmod $MODDIR/mpeg2hw.ko mmeName=$mmeName;;
        esac
    
        case $linuxver in stm23|stm24) insmod $MODDIR/p2div64.ko;; esac
        
        insmod $MODDIR/ksound.ko
    
        if [ "$linuxver" == "stm23" ] && [ "$model" == "ufs910" ]; then
            insmod $MODDIR/st-slim.ko
            insmod $MODDIR/st-tkdma.ko
        fi
    
        insmod $MODDIR/pseudocard.ko
    
         if [ -e "$MODDIR/lnb.ko" ]; then
            insmod $MODDIR/lnb.ko type=a8293 debug=100
         fi
         
        if [ -e "$MODDIR/frontend_platform.ko" ]; then
            insmod $MODDIR/frontend_platform.ko
            insmod $MODDIR/socket.ko
            insmod $MODDIR/lnbh221.ko
            insmod $MODDIR/lnb_pio.ko
            
            if [ -f "$MODDIR/dvb-pll.ko" ]; then
                insmod $MODDIR/dvb-pll.ko
            fi
    
            if [ -f "$MODDIR/cx24116.ko" ]; then
                insmod $MODDIR/cx24116.ko
            fi
    
            if [ -f "$MODDIR/tda10023.ko" ]; then
                insmod $MODDIR/tda10023.ko
            fi
    
            if [ -f "$MODDIR/zl10353.ko" ]; then
                insmod $MODDIR/zl10353.ko
            fi
    
            if [ -f "$MODDIR/stv0288.ko" ]; then
                insmod $MODDIR/stv0288.ko
            fi
    
            if [ -e "$MODDIR/tda10024.ko" ]; then
                insmod $MODDIR/tda10024.ko
            fi
    
            if [ -e "$MODDIR/cxd2820.ko" ]; then
                insmod $MODDIR/cxd2820.ko
            fi
    
            if [ -e "$MODDIR/stv090x.ko" ]; then
                insmod $MODDIR/stv090x.ko
            fi        
        elif [ -e "$MODDIR/avl2108_platform.ko" ]; then
            insmod $MODDIR/avl2108_platform.ko
        fi    
    
        case $model in
            ipbox91)
                echo "skip insmod tuner=$tuner";;
            ipbox910)
                echo "skip insmod tuner=$tuner";;
            ipbox900)
                echo "skip insmod tuner=$tuner";;
            ipbox9000)
                echo "skip insmod tuner=$tuner";;        
            ufs922)
                insmod $MODDIR/$tuner
                RC=$?
                case $linuxver in
                    stm24)
                        insmod $MODDIR/$tunersec;;
                    *)
                        if [ $RC -ne 0 ]; then
                            insmod $MODDIR/$tunersec
                        fi;;
                esac;;
            *)
                insmod $MODDIR/$tuner;;
        esac
        
        case $model in
            spark)
                echo "skip ci";;
            *)
                insmod $MODDIR/$ci;;
        esac
        
        case $player in
            179)
                insmod $MODDIR/pti.ko waitMS=20 videoMem=4096
                insmod $MODDIR/stm_monitor.ko
                insmod $MODDIR/stmsysfs.ko
                insmod $MODDIR/stmdvb.ko $useHighSR $useswts;;
            191)
                insmod $MODDIR/pti.ko waitMS=20 videoMem=4096
                insmod $MODDIR/stm_monitor.ko
                insmod $MODDIR/stmsysfs.ko
                insmod $MODDIR/stmdvb.ko $useHighSR $useswts;;    
            *)
                insmod $MODDIR/pti.ko
                insmod $MODDIR/stmdvb.ko $useHighSR $useswts
                insmod $MODDIR/stm_monitor.ko;;
        esac
    
        insmod $MODDIR/player2.ko $usenoaudiosync discardlateframe=0 $useoldaudiofw
    
        insmod $MODDIR/sth264pp.ko
        insmod $MODDIR/stmalloc.ko
        insmod $MODDIR/platform.ko
        insmod $MODDIR/silencegen.ko
        insmod $MODDIR/bpamem.ko
        case $SWTYPE in
            titan)
                echo 20 >/proc/progress;;
            neutrino)
                echo 20 >/proc/progress;;
        esac
    }
    
    startBootlogo()
    {
        echo "$CMD [$INPUT] startBootlogo $1"
        case $1 in
            cont)
                if [ -e "/proc/$bootlogopid" ]; then kill -cont $bootlogopid;    fi;;
            *)
                case $SWTYPE in
                    enigma2)
                        /var/etc/boot/bootlogo.sh "$SWTYPE" "first" &
                        bootlogopid=$!;;
                    neutrino)
                        /var/etc/boot/bootlogo.sh "$SWTYPE" "first" &
                        bootlogopid=$!;;
                    titan)
                        /var/etc/boot/bootlogo.sh "$SWTYPE" "first" &
                        bootlogopid=$!;;
                    *)
                        /var/etc/boot/bootlogo.sh "$SWTYPE" "first";;
                esac;;
        esac
    }
    
    startFrontpanel()
    {
        echo "$CMD [$INPUT] startFrontpanel"
        if [ -e "$MODDIR/clk.ko" ]; then
            insmod $MODDIR/clk.ko
        fi
    
        case $model in
            ufs912|at7500|skysat|atemio500|spark)
                echo "$CMD [$INPUT] skip init frontpanel";;
            *)
                echo "$CMD [$INPUT] init frontpanel"
                insmod $MODDIR/boxtype.ko;;
        esac
    
        if [ -e "$MODDIR/simu_button.ko" ]; then
            insmod $MODDIR/simu_button.ko
        fi
        case $model in
            spark)
                echo "$CMD [$INPUT] init frontpanel"
                insmod $MODDIR/aotom.ko
                insmod $MODDIR/encrypt.ko;;
        esac            
    }
    
    startReader()
    {
        echo "$CMD [$INPUT] startReader $SWTYPE $model"
        case $model in
            at7000|ipbox910|ipbox900|ipbox91|ipbox9000)
                case $linuxver in 
                    stm24) 
                        if [ -e $MODDIR/smartcard.ko ]; then
                            insmod $MODDIR/smartcard.ko debug=100
                        fi;;
                    stm22|stm23)    
                        if [ -e $MODDIR/funcemu.ko ]; then
                            insmod $MODDIR/funcemu.ko
                        fi
                        if [ -e $MODDIR/sci-ng.ko ]; then
                            insmod $MODDIR/sci-ng.ko
                        fi;;
                esac;;        
            at700)
                case $linuxver in
                    stm24)
                        if [ -e $MODDIR/smartcard.ko ]; then
                            insmod $MODDIR/smartcard.ko debug=100
                        fi;;
                    stm22|stm23)    
                        if [ -e $MODDIR/funcemu.ko ]; then
                            insmod $MODDIR/funcemu.ko
                        fi
                        if [ -e $MODDIR/sci-ng.ko ]; then
                            insmod $MODDIR/sci-ng.ko sci_major=169
                        fi;;
                esac;;            
            at7500)
                if [ -e $MODDIR/smartcard.ko ]; then
                    insmod $MODDIR/smartcard.ko debug=100
                fi;;
            spark)
                if [ -e $MODDIR/smartcard.ko ]; then
                    insmod $MODDIR/smartcard.ko
                fi;;
            skysat)
                if [ -e $MODDIR/smartcard.ko ]; then
                    insmod $MODDIR/smartcard.ko
                fi;;
            atemio500)
                if [ -e $MODDIR/smartcard.ko ]; then
                    insmod $MODDIR/smartcard.ko
                fi;;
        esac
    }
    
    startEvremote()
    {
        echo "$CMD [$INPUT] startEvremote $SWTYPE $model"
    
        case $model in
            ufs910)
                var=`cat /proc/boxtype`
                case $var in
                    1|3)
                        echo "$CMD [$INPUT] init lircd"
                        /usr/bin/lircd;;
                esac
                /bin/evremote2 &
                case $var in
                    0)   echo "$CMD [$INPUT] 1W boxtype";;
                    1|3) echo "$CMD [$INPUT] 14W boxtype"
                             insmod $MODDIR/button.ko
                             insmod $MODDIR/led.ko;;
                    *)   echo "$CMD [$INPUT] unknown boxtype";;
                esac;;
            ufs922)
                /bin/evremote2 0 0 10 120 &;;
            tf7700)
                tffpctl --keyemulationmode 2
                /bin/evremote2 110 10 &;;
            at7500|at7000|at700)
                #maxRate (same key) = 3, maxDelay (determine new key) = 150
                case $maxrate in "") maxrate='10';; esac
                case $maxdelay in "") maxdelay='120';; esac
                echo "MaxRate=" $maxrate
                echo "MaxDelay=" $maxdelay
                /bin/evremote2 $maxrate $maxdelay &;;
            ipbox910|ipbox900|ipbox91|ipbox9000)
                case $maxrate in "") maxrate='10';; esac
                case $maxdelay in "") maxdelay='140';; esac
                echo "MaxRate=" $maxrate
                echo "MaxDelay=" $maxdelay
                /bin/evremote2 $maxrate $maxdelay &;;
            spark)
                echo "init lircd"
                /usr/bin/lircd
                major=`cat /proc/devices | grep sparkid | cut -d "" -f1`
                rm -f /dev/sparkid
                mknod /dev/sparkid c $major 0
                /bin/evremote2 10 120 &;;
            skysat)
                echo "init lircd"
                /bin/evremote2 hdbox 100 &;;
            atemio500)
                echo "init lircd"
                /bin/evremote2 hdbox 100 &;;
            *)
                /bin/evremote2 10 120 &;;
        esac
    }
    
    startDownmix()
    {
        case $SWTYPE in
            neutrino)
                echo "$CMD [$INPUT] startDownmix $SWTYPE $model"
                echo downmix > /proc/stb/audio/ac3
                echo downmix > /proc/stb/audio/ac3_choice;;
            *)
                case $model in
                    at700)
                        echo "$CMD [$INPUT] startDownmix $SWTYPE $model"
                        if [ -e /var/etc/.downmix ]; then
                            echo downmix > /proc/stb/audio/ac3
                            echo downmix > /proc/stb/audio/ac3_choice
                        fi;;
                esac;;
        esac
    }
    
    startDisplaySystem()
    {
        case $ipbox in 
            1)
                case $linuxver in
                    stm24)
                        echo "$SWTYPE" > /dev/vfd;;
                    *)
                        echo "$SWTYPE" > /dev/dbox/fp0
                        /bin/cubefpctl --setledoff
                        rm -f /dev/vfd
                        ln -s /dev/dbox/fp0 /dev/vfd;;
                esac;;        
            *)
                echo "$SWTYPE" > /dev/vfd;;
        esac
    }
    
    startTf7700vfd2()
    {
        # This must be done at the beginning of each start because later in
        # the boot process we switch to another VFD device for the TF7700
        case $model in
            tf7700)
                rm -f /dev/vfd
                mknod -m 0666 /dev/vfd c 62 2 2>/dev/null;;
        esac
    }
    
    startTf7700vfd0()
    {
        # Switch to another VFD device for the TF7700
        if [ "$model" == "tf7700" ]; then
            if [ ! -e "/var/etc/.firstboot" ]; then
                rm -f /dev/vfd
                mknod -m 0666 /dev/vfd c 62 0 2>/dev/null
            fi
        /bin/tffpctl --setgmtoffset
        fi
    }
    
    startPlugload() {
        case $SWTYPE in
            enigma2)
                case $plugload in
                    y)
                        case $debug in on|full) echo "$CMD [$INPUT] start Plugload";; esac
                        /var/etc/PlugLoad.sh;;
                esac;;
        esac
    }
    
    startLoadmodules() {
        case $debug in on|full) echo "$CMD [$INPUT] load Module";; esac
        MEM=$IFS; IFS=$"\012" 
        [ -z "`grep -v ^# /var/etc/blacklist-modules`" ] && BLK_LIST="" || BLK_LIST=`grep -v ^# /var/etc/blacklist-modules`
        IFS=$MEM
        LIST=`ls -1 /var/lib/modules`
        for ROUND in $LIST; do
            WHITE=1
            if [ ! -z "$BLK_LIST" ]; then
                for BLK_MOD in $BLK_LIST; do
                    [ "$ROUND" == "$BLK_MOD" ] && WHITE=0 && break 
                done
            fi
            [ $WHITE -ne 0 ] && insmod /var/lib/modules/"$ROUND"
        done
    }
    
    startRmplaylist() {
        if [ "$playlist" = 'y' ] && [ -e /var/usr/local/share/enigma2/playlist.e2pls ]; then
            case $debug in on|full) echo "$CMD [$INPUT] start remove playlist";; esac
            rm /var/usr/local/share/enigma2/playlist.e2pls
        fi
    }
    
    startSamba() {
        case $sambaserver in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] start samba";; esac
                /var/bin/smbd -D
                sleep 1
                /var/bin/nmbd -D;;
        esac
    }
    
    startNfs() {
        case $nfsserver in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] start startNfs";; esac
                /etc/init.d/portmap start &
                /etc/init.d/nfs-kernel-server start &;;
        esac
    }
    
    startEmu() {
        case $emu in
            off) ;;
            *)
                case $debug in on|full) echo "$CMD [$INPUT] start $emu";; esac
                emu.sh "start" "" "wait" &;;
        esac
    }
    
    startPl2303() {
        if [ "$pl2303" = "y" ] && [ "$usbserial" == "1" ] && [ -e /lib/modules/pl2303.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load pl2303 modul";; esac
            if [ ! "$nr_usbreaders" ]; then nr_usbreaders=2; fi
            if [ "$nr_usbreaders" -gt 0 ]; then
                i=-1
                while [[ $((++i)) -lt "$nr_usbreaders" ]]; do
                    mknod -m 666 /dev/ttyUSB"$i" c 188 "$i"
                done
            fi
            /sbin/insmod /lib/modules/usbserial.ko >/dev/null 2>&1
            /sbin/insmod /lib/modules/pl2303.ko
        fi
    }
    
    startFtdi() {
        if [ "$ftdi" = "y" ] && [ "$usbserial" == "1" ] && [ -e /lib/modules/ftdi.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load Ftdi modul";; esac
            if [ ! "$nr_usbreaders" ]; then nr_usbreaders=2; fi
            if [ "$nr_usbreaders" -gt 0 ]; then
                i=-1
                while [[ $((++i)) -lt "$nr_usbreaders" ]]; do
                    mknod -m 666 /dev/ttyUSB"$i" c 188 "$i"
                done
            fi
            /sbin/insmod /lib/modules/usbserial.ko >/dev/null 2>&1
            /sbin/insmod /lib/modules/ftdi.ko
        fi
    }
    
    startProfile() {
        case $SWTYPE in
            enigma2)
                case $debug in on|full) echo "$CMD [$INPUT] Create Profile";; esac
    
    echo "0.02    PYTHON_START
    0.18    LANGUAGE
    0.77    LOAD:InfoBar
    0.81    LOAD:GUISkin
    0.84    LOAD:ElementTree
    1.99    LOAD:enigma_skin
    2.58    LoadSkin
    2.80    LoadSkinDefault
    3.07    LoadSkinDefaultDone
    3.08    LOAD:Source
    3.08    LOAD:GUIComponent
    3.47    LOAD:enigma
    3.48    LOAD:InfoBarGenerics
    3.64    ChannelSelection.py 1
    6.86    ChannelSelection.py 2
    6.86    ChannelSelection.py 2.1
    6.89    ChannelSelection.py 2.2
    6.89    ChannelSelection.py 2.3
    6.89    ChannelSelection.py 3
    6.93    ChannelSelection.py 4
    6.95    ChannelSelection.py after imports
    7.80    LOAD:InitBar_Components
    7.80    LOAD:HelpableScreen
    7.81    ParentalControl
    7.84    LOAD:Navigation
    7.92    LOAD:skin
    7.92    LOAD:Tools
    7.93    ReloadProfiles
    8.01    Twisted
    14.61    LOAD:Plugin
    14.62    LOAD:Wizard
    14.97    misc
    14.98    LOAD:ScreenGlobals
    15.05    Screen
    15.05    Standby,PowerKey
    15.06    Scart
    15.07    Load:CI
    15.09    Load:VolumeControl
    15.12    VolumeControl
    15.12    Init:skin
    15.57    InputDevice
    15.58    AVSwitch
    15.64    RecordingConfig
    15.65    UsageConfig
    16.08    keymapparser
    16.38    Network
    16.44    LCD
    16.46    SetupDevices
    18.35    RFMod
    18.35    Init:CI
    18.37    readPluginList
    20.65    Init:Session
    20.69    wizards
    23.03    Init:VolumeControl
    23.11    Init:PowerKey
    23.13    RunReactor" > /var/tmp/profile
    
        > /var/tmp/blacklist
        > /var/tmp/playlist.e2pls
        > /var/tmp/whitelist;;
    esac
    }
    
    startNetmodule() {
        case $debug in on|full) echo "$CMD [$INPUT] start Load Netmodule";; esac
        if [ -e /lib/modules/fuse.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load fuse.ko modul";; esac
            /sbin/insmod /lib/modules/fuse.ko
        fi
        if [ -e /lib/modules/ntfs.ko ]; then
            case $debug in on|full)    echo "$CMD [$INPUT] Load ntfs.ko modul";; esac
            /sbin/insmod /lib/modules/ntfs.ko
        fi
        if [ -e /lib/modules/cifs.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load cifs.ko modul";; esac
            /sbin/insmod /lib/modules/cifs.ko
        fi
        if [ -e /lib/modules/nfs_acl.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load nfs_acl.ko modul";; esac
            /sbin/insmod /lib/modules/nfs_acl.ko
        fi
        if [ -e /lib/modules/exportfs.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load exportfs.ko modul";; esac
            /sbin/insmod /lib/modules/exportfs.ko
        fi
        if [ -e /lib/modules/nfsd.ko ]; then
            case $debug in on|full) echo "$CMD [$INPUT] Load nfsd.ko modul";; esac
            /sbin/insmod /lib/modules/nfsd.ko
        fi
    }
    
    startRcreboot() {
        case $rcreboot in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] start RC-Reboot";; esac
                /usr/bin/awk -f /etc/init.d/getfb.awk /dev/input/event0 &
        esac
    }
    
    startCrossepg() {
        if [ -e /usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg/crossepg_epgmove.sh ]; then
            case $debug in on|full) echo "$CMD [$INPUT] start CROSSEPG";; esac
            /usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg/crossepg_epgmove.sh
        fi
    }
    
    startFontsize() {
        case $SWTYPE in
            enigma2)    
                if [ "$1" = "reboot" ] || ([ "$1" = "first" ] && [ "$firstnet" == "1" ]); then
                    case $fontsize in
                        big)
                            case $debug in on|full) echo "$CMD [$INPUT] set fontsize to $fontsize";; esac
                            FILE=/var/usr/local/share/enigma2/skin_default.xml
                            sed -e 's!<widget font="Regular;17" position="640,130" render="Label" size="350,380" source="ServiceEvent">!<widget font="Regular;22" position="640,130" render="Label" size="350,380" source="ServiceEvent">!g' -i $FILE
                            sed -e 's!<widget foregroundColorServiceNotAvail="#5a5a5a" name="list" position="30,74" scrollbarMode="showOnDemand" serviceInfoFont="Regular;17" serviceItemHeight="21" serviceNameFont="Regular;19" serviceNumberFont="Regular;19" size="590,442"/>!<widget foregroundColorServiceNotAvail="#5a5a5a" name="list" position="30,74" scrollbarMode="showOnDemand" serviceInfoFont="Regular;22" serviceItemHeight="26" serviceNameFont="Regular;24" serviceNumberFont="Regular;24" size="590,442"/>!g' -i $FILE;;
                        small)
                            case $debug in on|full) echo "$CMD [$INPUT] set fontsize to $fontsize";; esac
                        FILE=/var/usr/local/share/enigma2/skin_default.xml
                            sed -e 's!<widget font="Regular;22" position="640,130" render="Label" size="350,380" source="ServiceEvent">!<widget font="Regular;17" position="640,130" render="Label" size="350,380" source="ServiceEvent">!g' -i $FILE
                            sed -e 's!<widget foregroundColorServiceNotAvail="#5a5a5a" name="list" position="30,74" scrollbarMode="showOnDemand" serviceInfoFont="Regular;22" serviceItemHeight="26" serviceNameFont="Regular;24" serviceNumberFont="Regular;24" size="590,442"/>!<widget foregroundColorServiceNotAvail="#5a5a5a" name="list" position="30,74" scrollbarMode="showOnDemand" serviceInfoFont="Regular;17" serviceItemHeight="21" serviceNameFont="Regular;19" serviceNumberFont="Regular;19" size="590,442"/>!g' -i $FILE;;
                    esac
                fi;;
        esac    
    }
    
    startFonts() {
        if [ ! -e /var/usr/share/fonts/default.ttf ]; then
            case $debug in on|full) echo "$CMD [$INPUT] restore default fonts";; esac
            cp /var/usr/share/fonts/backup-default.ttf /var/usr/share/fonts/default.ttf
        fi
    }
    
    startBa() {
        case $model in
            tf7700)
                #sleep 2
                BADEV=`/sbin/blkid | grep XBA | grep /dev/sdb | cut -c1-9`
                if [ ! $BADEV ]; then
                    BADEV=`/sbin/blkid | grep XBA | cut -c1-9`
                fi
                if [ ! -z "$BADEV" ]; then
                    echo "[rcS] mount $BADEV /var/baroot"
                    mount $BADEV /var/baroot
                else
                    echo "[rcS] No XBA device detected."
                fi
                /var/baroot/ba/bainit > /var/ba-tf7700.log 2>&1
                echo tf7700 BA Init;;
        
            *)
                if [ "$imagetype" == "flash" ] && [ -e /var/baroot/ba/bainit ]; then
                    case $debug in on|full) echo "$CMD [$INPUT] start bainit";; esac
                    mkdir /tmp/badevice
                    busybox mount -n --bind /var/badevice /tmp/badevice
                    case $model in
                        ufs910)
                            if [ `grep /dev/mtdblock3 /proc/mounts | tail -n 1 | wc -l` -eq 1 ]; then
                                /var/baroot/ba/bainit > /var/ba.log 2>&1
                            fi;;
                        ufs922)
                            if [ `grep /dev/mtdblock3 /proc/mounts | tail -n 1 | wc -l` -eq 1 ]; then
                                if [ -e /var/baroot/.e2flash ]; then
                                    /var/baroot/ba/bainit > /var/ba.log 2>&1
                                fi
                            fi;;
                    esac
                    umount /tmp/badevice
                    rmdir /tmp/badevice
                fi;;
        esac    
    }
    
    startBootdelay() {
        if [ -e /var/etc/.bootdelay ]; then
            case $debug in on|full) echo "$CMD [$INPUT] start set bootdelay 1";; esac
            fw_setenv bootdelay 1
            rm /var/etc/.bootdelay
        fi
    }
    
    startWlan() {
        case $wlan in
            y)
                if [ -f /var/etc/autostart/wlan ]; then
                    WLAN_LOG=/tmp/wlan.log
                    > $WLAN_LOG
                    WLAN_STARTMODE=load
                  . /var/etc/autostart/wlan
                else
                    echo "$CMD [$INPUT] wireless plugin not installed"
                fi;;
        esac
    }
    
    startShowinfo() {
        case $showtvinfo in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] startShowinfo";; esac
                VERSION=`cat /etc/version`
                startWaitfor "/tmp/.swapready" 10
                startWaitfor "/tmp/.networkready" 10
                startWaitfor "/tmp/.fbready" 1000; rm /tmp/.fbready
                echo " " >> /tmp/.infobox
                showextdir=`readlink /var/swap`
                showswapdir=`readlink /var/swapdir`
                showbackdir=`readlink /var/backup`
                showmovdir=`readlink /media/hdd`
                if [ ! -z "$showextdir" ]; then echo "Extensions: $showextdir" >> /tmp/.infobox; fi
                if [ ! -z "$showswapdir" ]; then echo "Swap: $showswapdir" >> /tmp/.infobox; fi
                if [ ! -z "$showbackdir" ]; then echo "Backup: $showbackdir" >> /tmp/.infobox; fi
                if [ ! -z "$showmovdir" ]; then echo "Movie: $showmovdir" >> /tmp/.infobox; fi
                while read line; do
                    param="$param \"$line\""
                done < /tmp/.infobox
                case $param in
                    "") ;;
                    *)  eval infobox 7 "BOOT-INFO" $param \" \" \"VERSION: $VERSION\";;
                esac
                > /tmp/.fbready;;
        esac
    }
    
    startSystemdown() {
        start_sec.sh 2 /sbin/fuser -k /dev/dvb/adapter0/frontend0
        start_sec.sh 2 pkill tuxtxt
        start_sec.sh 2 pkill -9 tuxtxt
        start_sec.sh 10 sync
        case $debug in on|full) echo "$CMD [$INPUT] Swapoff";; esac
        start_sec.sh 10 swap.sh swapfileoff "$SWTYPE" "$model"
        case $debug in on|full) echo "$CMD [$INPUT] Stop Emu";; esac
        start_sec.sh 2 emu.sh stop
        if [ "$fsckswap" == "y" ] && [ -e /tmp/.swapdirdev ]; then
            device=`cat /tmp/.swapdirdev`; fastcut "$device" "#" 1; device="$fcr"
            startFsck "$device"
        fi
        if [ "$fsckrecord" == "y" ] && [ -e /tmp/.moviedev ]; then
            device=`cat /tmp/.moviedev`; fastcut "$device" "#" 1; device="$fcr"
            startFsck "$device"
        fi
    }
    
    startReboot() {
        case $ipbox in
            1)
                case $linuxver in
                    stm24)
                        echo "nothing to do";;
                    *)
                        /bin/cubefpctl --setgmtoffset
                        /bin/cubefpctl --syncfptime;;
                esac;;        
            *) 
                case $model in tf7700) /bin/tffpctl --setgmtoffset;; esac;;
        esac
    
        echo [start.sh] startReboot $REBOOT >/tmp/log
        case $REBOOT in
            1)
                echo "$CMD [$INPUT] $SWTYPE SHUTDOWN"
                /var/etc/boot/poweroff.sh
                echo "SHUTDOWN" > /dev/vfd
                case $model in ufs922) fp_control -ww;; esac #write only wakeUp File
                startSystemdown
                init 0;;
            2)
                echo "$CMD [$INPUT] $SWTYPE REBOOT"
                /var/etc/boot/reboot.sh
                echo "REBOOT" > /dev/vfd
                case $model in ufs922) fp_control -ww;; esac #write only wakeUp File
                startSystemdown
                init 6;;
            3)
                echo "$CMD [$INPUT] $SWTYPE RESTART"
                echo "0" > /proc/progress
                start_sec.sh 2 /sbin/fuser -k /dev/dvb/adapter0/frontend0
                /var/etc/boot/bootlogo.sh "$SWTYPE" "restart" &
                echo "RESTART" > /dev/vfd
                start_sec.sh 2 pkill tuxtxt
                start_sec.sh 2 pkill -9 tuxtxt
                start_sec.sh 2 emu.sh stop
                (sleep 10;emu.sh start)&;;
            20)
                echo "$CMD [$INPUT] $SWTYPE QT-BROWSER"
                start_sec.sh 2 /sbin/fuser -k /dev/dvb/adapter0/frontend0
                echo "QT-BROWSER" > /dev/vfd
                start_sec.sh 2 pkill tuxtxt
                start_sec.sh 2 pkill -9 tuxtxt
                oldmode=`cat /proc/stb/video/videomode`
                echo 720p50 >/proc/stb/video/videomode
                sleep 2
                /var/bin/browser/browser -qws
                sleep 2
                echo $oldmode >/proc/stb/video/videomode
                echo "0" > /proc/progress
                /var/etc/boot/bootlogo.sh "$SWTYPE" "restart" &
                echo "RESTART" > /dev/vfd
                start_sec.sh 2 emu.sh stop
                (sleep 10;emu.sh start)&;;
            *)
                sleep $errorstop
                echo "." >> /var/etc/.error
                if [ `cat /var/etc/.error | wc -l` -gt 2 ]; then e2errorboot=n; fi
                case $e2errorboot in
                    y)
                        echo "$CMD [$INPUT] ERROR $SWTYPE RESTART"
                        echo "0" > /proc/progress
                        start_sec.sh 2 /sbin/fuser -k /dev/dvb/adapter0/frontend0
                        /var/etc/boot/bootlogo.sh "$SWTYPE" "restart" &
                        echo "ERROR RESTART" > /dev/vfd
                        start_sec.sh 2 pkill tuxtxt
                        start_sec.sh 2 pkill -9 tuxtxt
                        start_sec.sh 2 emu.sh stop
                        (sleep 10;emu.sh start)&;;
                    *)
                        echo "$CMD [$INPUT] ERROR $SWTYPE REBOOT"
                        /var/etc/boot/reboot.sh
                        echo "ERROR REBOOT" > /dev/vfd
                        startSystemdown
                        init 6;;
                esac;;
        esac
    }
    
    startFirst() {
        case $debug in on|full) echo "$CMD [$INPUT] Boot first";; esac
        > /var/etc/.first
    }
    
    startDelflagfiles() {
        case $debug in on|full) echo "$CMD [$INPUT] Remove first and error";; esac
        if [ -e /var/etc/.first ]; then rm /var/etc/.first; fi
        if [ -e /var/etc/.error ]; then rm /var/etc/.error; fi
        if [ -e /var/etc/.firstszap ]; then rm /var/etc/.firstszap; fi
        if [ "$firstnet" == "1" ]; then rm /var/etc/.firstnet; fi
    }
    
    startGetbootvid() {
        if [ $model = "ufs912" ] || [ $model = "at7500" ]; then
            if [ -e /var/etc/.getbootvid ]; then rm /var/etc/.getbootvid; fi
        elif [ -e /var/etc/.getbootvid ] && [ ! -e /etc/.fullusb ]; then
            if [ -e /tmp/.swapextensionsdev ] && checknet ; then
                case $debug in on|full) echo "$CMD [$INPUT] startgetbootvid";; esac
                infobox 9999 "UPDATE" "ACHTUNG: Videos downloaden ??" " " "OK = Weiter" "EXIT = Abbrechen" &
                echo "VideoDownl ?" > /dev/vfd
                abfrage /dev/input/event0; ret=$?
                echo " " > /dev/vfd
                killall infobox
                case $ret in
                    0)
                        case $debug in on|full) echo "$CMD [$INPUT] startgetbootvid started download";; esac
                        killall infobox
                        infobox 5 Info "Try to download Boot-/Reboot-/Shutdownvideo. Please wait!" &
                        echo "Load Bootvideo" > /dev/vfd
                        if [ ! -e /var/swap/boot ]; then
                            case $debug in on|full) echo "$CMD [$INPUT] create boot DIR";; esac
                            mkdir /var/swap/boot
                        fi
                        rm -f /var/swap/boot/bootvideo.mkv /var/swap/boot/rebootvideo.mkv /var/swap/boot/bootvideo.mvi /var/swap/boot/poweroffvideo.mkv
                        sync
                        cd /var/swap/boot
                        wget.info `cat /var/etc/ipkg/official-feed.conf | cut -d " " -f3`/boot/bootvideo.mkv
                        case $? in
                            0)
                                wget.info `cat /var/etc/ipkg/official-feed.conf | cut -d " " -f3`/boot/bootvideo.mvi
                                wget.info `cat /var/etc/ipkg/official-feed.conf | cut -d " " -f3`/boot/poweroffvideo.mkv
                                wget.info `cat /var/etc/ipkg/official-feed.conf | cut -d " " -f3`/boot/rebootvideo.mkv;;
                        esac;;
                esac
            fi
            rm -f /var/etc/.getbootvid
            sync
        else
            rm -f /var/etc/.getbootvid
        fi
    }
    
    startCpufreqstop() {
        case $only_boot_overclock in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] startCpufreqstop";; esac
                echo 15110 > /proc/cpu_frequ/pll0_ndiv_mdiv # 531MHZ
                echo 34057 > /proc/cpu_frequ/pll1_ndiv_mdiv # 399MHZ
                echo 0 > /proc/cpu_frequ/pll1_fdma_bypass;;
        esac
    }
    
    startSysctl() {
        case $model in
            ufs910)
                case $debug in on|full) echo "$CMD [$INPUT] startSysctl";; esac
                echo 0 > /proc/sys/net/ipv4/tcp_timestamps &
                echo 0 > /proc/sys/net/ipv4/tcp_sack &;;
        esac
    }
    
    startFan() {
    # Start Fan
        case $model in
            ufs922)
                echo "$CMD [$INPUT] Set Fan Speed"
                fanspeed=`grep -m1 config.Fan.speed /etc/enigma2/settings`; fastcut "$fanspeed" "=" 2; fanspeed="$fcr"
                case $fanspeed in
                    0)    echo "115" > /proc/stb/fan/fan_ctrl;;
                    1)    echo "130" > /proc/stb/fan/fan_ctrl;;
                    2)    echo "145" > /proc/stb/fan/fan_ctrl;;
                    3)    echo "155" > /proc/stb/fan/fan_ctrl;;
                    *)    echo "170" > /proc/stb/fan/fan_ctrl;; # default 1500rpm
                esac;;
        esac
    }
    
    startRepair() {
        case $debug in on|full) echo "$CMD [$INPUT] startRepair";; esac
        case $SWTYPE in
            enigma2)
                sed "/config.skin.primary_skin=/d" -i /etc/enigma2/settings
                epgfilelocation=`grep -m1 config.misc.epgcache_filename /etc/enigma2/settings`; fastcut "$epgfilelocation" "=" 2; epgfilelocation="$fcr"
                case $epgfilelocation in
                    "") rm -f "$epgfilelocation";;
                    *)  rm -f /media/hdd/epg.dat;;
                esac;;
            neutrino)
                epgfilelocation=`grep -m1 epg_dir /var/usr/local/share/config`; fastcut "$epgfilelocation" "=" 2; epgfilelocation="$fcr"
                case $epgfilelocation in
                    "") rm -f "$epgfilelocation";;
                    *)  rm -f /media/hdd/epg.dat;;
                esac;;
        esac
        resolvsize=`ls -l /var/etc/resolv.conf 2>/dev/null | cut -c 30-42`
        if [ ! -z "$resolvsize" ] && [ $resolvsize -gt 2048 ]; then
            rm -f /var/etc/resolv.conf
        fi
    
        infobox 9999 INFO "Soll ein Filesystemcheck durchgefuehrt werden ?" " " "OK = Check durchfuehren" "EXIT = Keine Check durchfuehren" &
        echo "FSCK ?" > /dev/vfd
        abfrage /dev/input/event0; ret=$?
        echo " " > /dev/vfd
        killall infobox
        case $ret in
            0)
                if [ -e /tmp/.swapdirdev ]; then
                    device=`cat /tmp/.swapdirdev`; fastcut "$device" "#" 1; device="$fcr"
                    startFsck "$device" "swap"
                fi
                if [ -e /tmp/.moviedev ]; then
                    device=`cat /tmp/.moviedev`; fastcut "$device" "#" 1; device="$fcr"
                    startFsck "$device" "swap"
                fi;;
        esac
    }
    
    startUpdate() {
        #Hole Imagelist
        update.sh getfilelist
        case $1 in online) lastimg=`ls -1 /tmp/online | grep _"$model"_ | grep _FULL_ | grep $SWTYPE | tail -n1`;; esac
        case $1 in tmp) lastimg=`ls -1 /tmp | grep _"$model"_ | grep _FULL_ | grep $SWTYPE | tail -n1`;; esac
        if [ ! -z "$lastimg" ]; then
            infobox 9999 INFO "Gefundenes Image:" "$lastimg" " " "OK = Update durchfuehren" "EXIT = Keine Update durchfuehren" &
            echo "Update ?" > /dev/vfd
            abfrage /dev/input/event0; ret=$?
            echo " " > /dev/vfd
            killall infobox
            case $ret in
                0)
                    case $1 in online) update.sh online full "$lastimg";; esac
                    case $1 in tmp) update.sh tmp full "$lastimg";; esac;;
            esac
        else
            infobox 3 INFO "Leider wurde kein Image am Server gefunden."
        fi
    }
    
    startHaltonerror() {
        if ([ "$repairmodus" == "1" ] && [ -e /var/etc/.error ]) || ([ "$repairmodus" == "2" ] && [ `cat /var/etc/.error | wc -l` -gt 2 ]); then
            case $debug in on|full) echo "$CMD [$INPUT] startHaltonerror";; esac
            
            waittime=60
            (sleep "$waittime"; killall abfrage) &
            pid=$!
            
            startWaitfor "/tmp/.bootlogoready" 10
            startWaitfor "/tmp/.networkready" 10
            startWaitfor "/tmp/.fbready" 1000; rm /tmp/.fbready
            while true; do
                ifconfig=`ifconfig eth0`; fastgrep "$ifconfig" "inet addr:"; ifconfig="$fgr"
                IP="${ifconfig/*inet addr:/}"; IP="${IP/ */}"
                killall infobox
                case $imagetype in
                    flash)
                        infobox 9999 INFO "Ein Fehler wurde beim letzten REBOOT festgestellt." "Mit TELNET koennen Reperaturen durchgefuehrt werden." "ErrorLog in /media/hdd wenn rmcrashlog im Panel deaktiviert." " " "Wartezeit: $waittime" "IP: $IP" " " "OK = Reparieren (bei Bootschleife)" "EXIT = Fortsetzen" "ROT = deaktiviere Wartezeit" "GRUEN = Netzwerk neu staren" "BLAU = Online Update" "GELB = TMP Update" &;;
                    *)
                        infobox 9999 INFO "Ein Fehler wurde beim letzten REBOOT festgestellt." "Mit TELNET koennen Reperaturen durchgefuehrt werden." "ErrorLog in /media/hdd wenn rmcrashlog im Panel deaktiviert." " " "Wartezeit: $waittime" "IP: $IP" " " "OK = Reparieren (bei Bootschleife)" "EXIT = Fortsetzen" "ROT = deaktiviere Wartezeit" "GRUEN = Netzwerk neu staren" &;;
                esac
                rm -f /var/etc/.error
                echo "Repair ?" > /dev/vfd
                abfrage /dev/input/event0; ret=$?
                echo " " > /dev/vfd
                kill $pid
                echo " " > /dev/vfd
                killall infobox
                if [ $ret -eq 0 ]; then    
                    startRepair
                    break
                elif [ $ret -eq 2 ] && [ "$imagetype" == "flash" ]; then 
                    startUpdate online
                    break
                elif [ $ret -eq 3 ]; then    
                    waittime="unendlich"
                    sleep 1
                elif [ $ret -eq 4 ] && [ "$imagetype" == "flash" ]; then 
                    startUpdate tmp
                    break
                elif [ $ret -eq 5 ]; then
                    infobox 3 INFO "   Restart Network (DHCP)  " &
                    echo "auto lo" > /var/etc/network/interfaces
                    echo "iface lo inet loopback" >> /var/etc/network/interfaces
                    echo "auto eth0" >> /var/etc/network/interfaces
                    echo "iface eth0 inet dhcp" >> /var/etc/network/interfaces
                    sed "/^INTERFACE:/d;/^IP-ADDRESSE:/d;/^NETMASKE:/d;/^GATEWAY:/d" -i /tmp/.infobox
                    /etc/init.d/networking restart
                    sleep 3
                else
                    break
                fi
            done
            > /tmp/.fbready
        fi
    }
    
    startTimefix() {
        case $ipbox in
            1)
                case $debug in on|full) echo "$CMD [$INPUT] startTimefix";; esac
                (
                /var/bin/ntpdate ptbtime1.ptb.de
                case $? in
                    0)
                        case $linuxver in
                            stm24)
                                echo "nothing to do";;
                            *)
                                cubefpctl --setgmtoffset
                                cubefpctl --syncfptime;;
                        esac;;        
                esac
                ) &;;
        esac
        case $1 in
            last)
                case $model in
                    at700|at7000|at7500)
                        case $debug in on|full) echo "$CMD [$INPUT] startTimefix last";; esac
                        date=`date "+%H:%M:%S %m-%d-%Y"`
                        echo "$CMD [$INPUT] current Date : $date"
                        /bin/fp_control -s $date;;
                esac;;    
        esac
    }
    
    startLink() {
        case $SWTYPE in
            enigma2)    
                if [ ! -L /usr/local/share/enigma2/timers.xml ]; then
                    case $debug in on|full) echo "$CMD [$INPUT] startLink";; esac
                    ln -sfn /etc/enigma2/timers.xml /usr/local/share/enigma2/timers.xml
                fi;;
        esac
    }
    
    startFirstplugload() {
        case $SWTYPE in
            enigma2)    
                if [ ! -e /var/etc/PlugLoad.cfg ]; then
                    case $debug in on|full) echo "$CMD [$INPUT] startFirstplugload";; esac
                    mv /var/etc/PlugLoad.cfg.firstboot /var/etc/PlugLoad.cfg
                fi;;
        esac
    }
    
    startFixBootArgs() {
        case $model in
            tf7700)
                case $debug in on|full) echo "$CMD [$INPUT] startFixBootArgs $model";; esac
    
                echo "/dev/mtd2 0x00000000 0x00010000 0x10000" > /var/fw_env.config
                dnsip=`cat /var/etc/resolv.conf | grep nameserver | cut -d" " -f2`
                ipaddr=`ifconfig eth0 | grep -m1 "inet addr" | sed s/"^\s*"// | sed s/" \+"/" "/g | cut -d " " -f2 | cut -d ":" -f2`
                serverip=`route -n | grep -m1 "^0.0.0.0" | sed s/" \+"/" "/g | cut -d " " -f2`
                gateway="$serverip"
                case $dnsip in "") DNS="$gateway";; esac
                RANDOM=`date +%s`
                HEX1=`printf "%02x\n" $((($RANDOM + 1)%255))`
                HEX2=`printf "%02x\n" $((($RANDOM + 43)%255))`
                HEX3=`printf "%02x\n" $((($RANDOM + 76)%255))`
                case $HEX1 in
                    ffffffff) ethaddr="00:3e:9e:11:22:33";;
                    *)        ethaddr="00:3e:9e:$HEX1:$HEX2:$HEX3";;
                esac
                netmask=`ifconfig eth0 | grep Bcast | cut -d ":" -f4`
                HELP=`fw_printenv`
                ba1=`echo "$HELP" | grep ba1= | sed 's/ba1=//'`
                bootargs=`echo "$HELP" | grep bootargs= | sed 's/bootargs=//'`
                HELP=`echo "$ba1"  | tr " " "\n" | grep "^ip=" | sed 's/^ip=//'`
                OLDIPBA1=`echo "$HELP" | cut -d ":" -f 1`
                fixba1=`echo "console=ttyAS0,115200 root=/dev/sda1 rw init=/bin/devinit ip=$ipaddr:$serverip:$gateway:$netmask:tf7700:eth0:off mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000 rootdelay=6 nwhwconf=device:eth0,hwaddr:$ethaddr"`
                HELP=`echo "$bootargs"  | tr " " "\n" | grep "^ip=" | sed 's/^ip=//'`
                OLDIP=`echo "$HELP" | cut -d ":" -f 1`
                fixbootargs=`echo "console=ttyAS0,115200 root=/dev/sda1 rw init=/bin/devinit ip=$ipaddr:$serverip:$gateway:$netmask:tf7700:eth0:off mem=128m coprocessor_mem=4m@0x10000000,4m@0x10400000 rootdelay=6 nwhwconf=device:eth0,hwaddr:$ethaddr"`
                if [ ! "$OLDIPBA1" = "$ipaddr" ] || [ ! "$OLDIP" = "$ipaddr" ] ; then
                    fw_setenv ba1 `echo $fixba1`
                    fw_setenv bootargs `echo $fixbootargs`
                    fw_setenv ipaddr `echo $ipaddr`
                    fw_setenv serverip `echo $serverip`
                    fw_setenv gateway `echo $gateway`
                    fw_setenv netmask `echo $netmask`
                    fw_setenv dnsip `echo $dnsip`
                    fw_setenv ethaddr `echo $ethaddr`
                fi;;
        esac
    }
    
    startVideoTune() {
        case $SWTYPE in
            enigma2)    
                brightness=`grep -m1 config.VideoTune.Brightness /etc/enigma2/settings`; fastcut "$brightness" "=" 2; brightness="$fcr"
                case $brightness in
                    "") echo "128" > /proc/stb/video/plane/psi_brightness;;
                    *)  echo $brightness > /proc/stb/video/plane/psi_brightness;;
                esac
                contrast=`grep -m1 config.VideoTune.Contrast /etc/enigma2/settings`; fastcut "$contrast" "=" 2; contrast="$fcr"
                case $contrast in
                    "") echo "128" > /proc/stb/video/plane/psi_contrast;;
                    *)  echo $contrast > /proc/stb/video/plane/psi_contrast;;
                esac
                saturation=`grep -m1 config.VideoTune.Saturation /etc/enigma2/settings`; fastcut "$saturation" "=" 2; saturation="$fcr"
                case $saturation in
                    "") echo "128" > /proc/stb/video/plane/psi_saturation;;
                    *)  echo $saturation > /proc/stb/video/plane/psi_saturation;;
                esac
                tint=`grep -m1 config.VideoTune.Tint /etc/enigma2/settings`; fastcut "$tint" "=" 2; tint="$fcr"
                case $tint in
                    "") echo "128" > /proc/stb/video/plane/psi_tint;;
                    *)  echo $tint > /proc/stb/video/plane/psi_tint;;
                esac
        esac
    }
    
    startPowerLed() {
        case $model in
            at7000)
                echo "$CMD [$INPUT] startPowerLed"
                level=`grep -m1 config.PowerLed.Level /etc/enigma2/settings`; fastcut "$level" "=" 2; level="$fcr"
                case $level in
                    "") fp_control -P 15;;
                    *)  fp_control -P "$level";;
                esac;;
        esac
    }
    
    startFirmware() {
        # instead of loading FW in rcS to mount swapstick before loading optional audio.elf
        case $debug in on|full) echo "$CMD [$INPUT] startFirmware";; esac
        
        # mme bug workaround
        case $model in
            ufs910)
                dd if=/dev/zero of=/dev/st231-0 bs=1024 count=4096
                dd if=/dev/zero of=/dev/st231-1 bs=1024 count=4096;;
        esac
        # end mme bug wa
    
        audioelf="/boot/audio.elf"
        videoelf="/boot/video.elf"
    
        case $model in
            ufs912)
                if [ "$oldaudiofw" == 'y' ]; then
                    audioelf="/boot/audio.old.elf"
                fi
                if [ "$oldvideofw" == 'y' ]; then
                    videoelf="/boot/video.old.elf"
                fi;;
            *)
                if [ "$oldaudiofw" == 'y' ]; then
                    startWaitfor "/tmp/.swapextensionsdev" 10
                    # symlink audio.elf from stick before checking
                    if [ -e /var/swap/bin/audio.elf ]; then
                        if [ ! -e /var/bin/audio.elf ]; then
                            ln -sfn /var/swap/bin/audio.elf /var/bin/audio.elf
                            audioelf="/var/bin/audio.elf"
                        fi    
                    elif [ -e /var/bin/audio.elf ]; then
                        audioelf="/var/bin/audio.elf"
                    fi
                fi;;
        esac    
    
        echo "$CMD [$INPUT] load audio firmware ($audioelf)"
        /bin/ustslave /dev/st231-1 "$audioelf"
        
        echo "$CMD [$INPUT] load video firmware"
        /bin/ustslave /dev/st231-0 "$videoelf"
    }
    
    startCheckPIN() {
        case $PinOn in
            y)
                echo "PIN - Eingabe" > /dev/vfd
                if [ $Pin ]; then
                    w1=`echo $Pin | cut -c1`
                    w2=`echo $Pin | cut -c2`
                    w3=`echo $Pin | cut -c3`
                    w4=`echo $Pin | cut -c4`
                    pin $w1 $w2 $w3 $w4; ret=$?
                else
                    pin 1 2 3 4; ret=$?      
                fi
                
                case $ret in
                    1)
                        echo "ERROR" > /dev/vfd
                        sync
                        reboot;;
                    *)
                        echo "PIN --> OK" > /dev/vfd
                        > /tmp/.pinok;;
                esac;;
        esac
    }
    
    startWastimerwakeup() {
        case $model in
            ufs922)
                #set wakeUpReason
              (sleep 60; fp_control -sw) &;;
            *)
                case $debug in on|full) echo "$CMD [$INPUT] startWastimerwakeup";; esac
                case $ipbox in
                    1) set_was_timer_wakeup 90 &;;
                    *) set_was_timer_wakeup &;;
                esac;;
        esac    
    }
    
    startTunersleep() {
        case $tuner_sleep_off in
            y)
                case $debug in on|full) echo "$CMD [$INPUT] startTunersleep";; esac
                #deaktivate tuner sleep, fix problems on some tuners
                echo 0 > /sys/module/dvb_core/parameters/dvb_shutdown_timeout;;
        esac
    }
    
    startSetled()
    {
        case $model in
            ufs910)
                case $debug in on|full) echo "$CMD [$INPUT] startSetled";; esac
                echo "B" > /dev/ttyAS1;;
        esac
        if [ -e /tmp/.moviedev ]; then
            case $debug in on|full) echo "$CMD [$INPUT] startSetled";; esac
            vfdctl +hdd
        fi
    }
    
    startCreateshm()
    {
        case $SWTYPE in
            enigma2)
                case $debug in on|full) echo "$CMD [$INPUT] startCreateshm";; esac    
                shmE2 create shm
                
                epgfiledays=`grep config.epg.EPG_days /etc/enigma2/settings`; fastcut "$epgfiledays" "=" 2; epgfiledays="$fcr"
                epgfilenotdelete=`grep config.epg.EPG_notdelete /etc/enigma2/settings`; fastcut "$epgfilenotdelete" "=" 2; epgfilenotdelete="$fcr"
    
                case $epgfilenotdelete in "") shmE2 set not_del_epg=1;; esac
                
                case $epgfiledays in
                    "") ;;
                    *)  shmE2 set epg_days="$epgfiledays";;
                esac
                
                case $record_split_size in
                    0|"") ;;
                    *) shmE2 set record_split_size="$record_split_size";;
                esac
                
                case $record_split_size in
                    0|"") ;;
                    *) shmE2 set record_split_type="$record_split_type";;
                esac
        esac
    }
    
    startMakeDevs() {
        case $debug in on|full) echo "$CMD [$INPUT] startMakeDevs";; esac
        if [ "$model" = "tf7700" ] || [ "$ipbox" == "1" ]; then
            if [ -e /dev/ttyAS1 ]; then    rm -f /dev/ttyAS1;    fi
        fi
    }
    
    startAAFfirst()
    {
        case $SWTYPE in
            titan)
                echo 50 >/proc/progress;;
            neutrino)
                echo 100 >/proc/progress;;
        esac
        if [ -e "/var/etc/.firstwizard" ]; then
            startWaitfor "/tmp/.bootlogoready" 10
            startWaitfor "/tmp/.fbready" 1000; rm /tmp/.fbready
            echo "AAF Wizard" > /dev/vfd
            aaf-first.sh
            echo " " > /dev/vfd
            rm "/var/etc/.firstwizard"
            if [ -e /tmp/.aaffirstchange ]; then
                infobox 3 INFO "Es wurden Aenderungen durchgefuehrt" "Eine Neustart ist erforderlich" " " "Die Box wird in 3 Sekunden neu gestartet !" &
                sleep 3
                REBOOT=2
                startReboot
            fi
            > /tmp/.fbready
        fi
    }
    
    startCheckDHCP() 
    {
        if [ "$firstnet" == "1" ]; then
            case $debug in on|full) echo "$CMD [$INPUT] startCheckDHCP";; esac
            CMDHELP=`cat /proc/cmdline | grep "ip=" | sed s#ip=#Ä:# | cut -dÄ -f2`
            if [ ! -z "$CMDHELP" ] && [ "`cat /var/etc/network/interfaces | grep 'inet dhcp'`" ]; then
                startWaitfor "/tmp/.bootlogoready" 10
                startWaitfor "/tmp/.networkready" 10
                startWaitfor "/tmp/.fbready" 1000; rm /tmp/.fbready
                infobox 9999 "INFO" "DHCP is on, you can use IP from Bootargs" "You have 10 sec to make a choice" "" "OK = Use DHCP" "EXIT = Use IP from Bootargs" &
                echo "Use DHCP ?" > /dev/vfd
                (sleep 10; killall abfrage) &
                pid=$!
                abfrage /dev/input/event0; ret=$?
                echo " " > /dev/vfd
                kill -9 $pid
                killall infobox
                case $ret in
                    1)
                        IP=`echo $CMDHELP | cut -d: -f2`
                        SERVER=`echo $CMDHELP | cut -d: -f3`
                        GATEWAY=`echo $CMDHELP | cut -d: -f4`
                        NETMASK=`echo $CMDHELP | cut -d: -f5`
                        if [ ! -z "$IP" ]; then
                            echo "auto eth0" > /var/etc/network/interfaces
                            echo "iface eth0 inet static" >> /var/etc/network/interfaces
                            echo "    address $IP" >> /var/etc/network/interfaces
                            if [ ! -z "$NETMASK" ]; then
                                echo "    netmask $NETMASK" >> /var/etc/network/interfaces
                            fi
                            if [ ! -z "$GATEWAY" ]; then
                                echo "    gateway $GATEWAY" >> /var/etc/network/interfaces
                                echo "nameserver $GATEWAY" >> /var/etc/resolv.conf
                                cp /var/etc/resolv.conf /var/etc/resolv.conf.dhcp
                            fi
                            cp /var/etc/network/interfaces /var/etc/network/interfaces.dhcp
                            sed "/^INTERFACE:/d;/^IP-ADDRESSE:/d;/^NETMASKE:/d;/^GATEWAY:/d;/^DNS-SERVER:/d" -i /tmp/.infobox
                            /etc/init.d/networking -i "eth0" -s "$showip" restart
                            sleep 1
                        else
                            ifconfig=`ifconfig eth0`; fastgrep "$ifconfig" "inet addr:"; ifconfig="$fgr"
                            IP="${ifconfig/*inet addr:/}"; IP="${IP/ */}"
                            case $IP in
                                "")
                                    echo "NO IP ADDR" > /dev/vfd
                                    sleep 1;;
                            esac
                        fi;;
                esac
                > /tmp/.fbready
            fi    
        fi
    }
    
    startClearJPGBootlogo()
    {
        case $SWTYPE in
            enigma2)
                if [ -e /var/etc/boot/bootlogo.jpg ]; then
                    shmE2 del useJpegBGx
                    shmE2 del useJpegBGy
                    shmE2 dec stopSpinner
                fi;;
        esac
    }
    
    startSwap() {
        case $debug in on|full) echo "$CMD [$INPUT] startSwap";; esac
        if [ ! -e /tmp/.swapdirdev ]; then
            case $debug in
                on|full) swap.sh "showInfoDirect" "$SWTYPE" "$model";;
                *) swap.sh "" "$SWTYPE" "$model";; esac
        fi
    }
    
    startUsercmd() {
        case $debug in on|full) echo "$CMD [$INPUT] startUsercmd";; esac
        if [ -e /var/etc/autostart/usercmd.sh ]; then
            /var/etc/autostart/usercmd.sh    
        fi
    }
    
    startWorkaround() {
        case $debug in on|full) echo "$CMD [$INPUT] startWorkaround";; esac
        if [ $SWTYPE = "neutrino" ]; then
            echo "$CMD [$INPUT] startWorkaround start - start.sh last"
            (sleep 10; /var/etc/autostart/start.sh last )&
        fi
    }
    
    case $1 in
        first)
            ( echo "$CMD Thread 1 start"
              startCreateshm
              startBind
              startTimeset
              startCpufreq
              startInetd
              startWastimerwakeup
              startCrossepg
              startPlugload        #startBind, startCrossepg
              startNetmodule
              startFtdi
              startPl2303
              startFontsize first
              startFonts
              startLink
              startTimefix
              startTunersleep
              startProfile
              startFirst
              echo "$CMD Thread 1 end" ) &
            startConfig
            startFrameBuffer
            startBootlogo            #startFrameBuffer
            startTf7700vfd2
            startVfd                    #startConfig
            startFan
            startFrontpanel
            startEvremote
            startAutofs
            startNetwork            #startVfd
            startAvs
            startFirmware            #startAutofs
            startBa                        #startAutofs
            startPlayer                #startConfig, startFirmware, startBa
            startBootlogo cont        #startAutofs, startPlayer
            /var/bin/camd3.902 /var/keys/camd3.config
            startEmu                    #startAutofs, startPlayer
            startReader
            startCheckDHCP        #startEvremote, startFrameBuffer, startVfd
            startHaltonerror    #startEvremote, startFrameBuffer, startVfd
            startWlan
            startCheckPIN                    #startEvremote, startVfd
            ( echo "$CMD Thread 2 start"
                startMakeDevs
              startPowerLed
              startDisplaySystem    #startVfd
              startTf7700vfd0
              startDownmix            #startPlayer
              startVideoTune        #startPlayer
              startShowinfo            #startAutofs, startFrameBuffer, startSwap
              startRcreboot            #startEvremote
                echo "$CMD Thread 2 end" ) &
            startWaitfor "/tmp/.hotplugready" 10
            startAAFfirst
            startWorkaround;;
        last)
            startClearJPGBootlogo
            startSetled
            startCpufreqstop
            startSwap
            sleep 10
            startTimefix last
            startFixBootArgs
            startDelflagfiles
            startLoadmodules &
            startRmplaylist
            startSamba &
            startNfs
            startFirstplugload
            startSysctl
            startUsercmd;;
        reboot)
            #startGetbootvid
            startFontsize reboot
            startReboot
            startBootdelay;;
        recovery)
            startUpdate online;;
        test)
            startReboot;;
    esac
    
    exit
    

    2. Emus Hochladen via FTP

    Ort: /var/bin/
    Dort laden wir
    Code:
    -camd3.902 
    -oscam  
    -pcamd 
    
    hoch, vergeben die Rechte über Rechtsklick CHMOD 755.

    Ort: /var/etc/
    Dort laden wir
    Code:
    - oscam.emu
    
    hoch, vergeben die Rechte über Rechtsklick CHMOD 755.


    Ort: /var/keys/
    Dort laden wir
    Code:
    - camd3.config
    - camd3.keys
    - camd3.map
    - camd3.users
    - eep120.bin
    - oscam.conf
    - oscam.dvbapi
    - oscam.provid
    - oscam.server
    - oscam.services
    - oscam.srvid
    - oscam.tiers
    - oscam.user
    - rom120.bin
    
    hochladen.

    Jetzt sind wir schon am Ende, jetzt nur noch eure C-Line in die oscam.server unter DE TuT User eintragen.


    Webinterface Daten:
    Oscam:
    httpport = 12345
    httpuser = admin
    httppwd = pass

    camd3:
    HTTP_PORT = 12346
    HTTP_ADMIN = admin
    HTTP_PASSWORD = pass



    mfg
    vale


    Download:

    Dieser Link ist nur für Mitglieder!!! Jetzt kostenlos Registrieren ?

     
    Zuletzt bearbeitet: 16. April 2012
    #1
    picasso1963 gefällt das.

Diese Seite empfehlen