Seite 1 von 1
oscam autoupdater
Verfasst: Sa 20. Aug 2011, 11:06
von vöslauer
hi
läuft auf der dream einwandfrei
wäre das was für das ipc ?
Code: Alles auswählen
#!/bin/sh
########################################################################################################
# OSCAM AUTO UPDATE SCRIPT 4 #
########################################################################################################
#GET THE LATEST VERSION AT :
#http://tekreaders.com/blog/2011/04/11/oscam-version-auto-update-on-dreambox/
########################################################################################################
########################################################################################################
########################################################################################################
#BASIC CONFIGURATION
# The location of your oscam binary
OSCAM_BIN="/usr/bin/oscam_1.00";
# The command to start OSCAM, you can call the script that you normally use to start/stop your emu
OSCAM_START="/usr/script/oscam_1.00_cam.sh start";
# The command to stop OSCAM, you can call the script that you normally use to start/stop your emu
OSCAM_STOP="/usr/script/oscam_1.00_cam.sh stop";
#Use "mips-tuxbox" if you are on mips (enigma2) dreambox (Models: 500HD, 7020HD, 7025, 7025+, 800HD, 800HD SE, 8000)
PLATFORM="mips-tuxbox";
#Use "powerpc-tuxbox-old" if you are on powerpc (enigma1) dreambox (Models: 7000, 56x0, 500, 500+, 600, 7020)
#PLATFORM="powerpc-tuxbox-old";
#Use "mips-wrt54g" if you are running on a wrt54g router
#PLATFORM="mips-wrt54g";
#####################################################################################
####### DO NOT CHANGE ANYTHING FROM HERE, UNLESS YOU KNOW WHAT YOU ARE DOING ########
#####################################################################################
#ADVANCED CONFIGURATION
#If you want to download the libusb version, set LIBUSB="1". If not then set LIBUSB="0"
#Please note that some platforms dont have libusb binaries available and the script will not update Oscam
LIBUSB="0";
#If you want to download the Dynamic Threads version, set DTHREADS="1". If not then set DTHREADS="0"
#Please note that some platforms dont have Dynamic Threads binaries available and the script will not update Oscam
DTHREADS="0";
#####################################################################################
#PROCESS UPDATE
cd /tmp
echo "Downloading Oscam Latest Revision...";
wget -O "latest_oscam.tar.gz" "http://tekreaders.com/oscam-update/update.php?platform=$PLATFORM&libusb=$LIBUSB&dthreads=$DTHREADS"
echo "Extracting Oscam binary for $PLATFORM...";
filename=`tar -xvzf latest_oscam.tar.gz 'oscam-svn*'`;
echo "Extracted file : $filename";
#INSTALL THE NEW REVISION
if [ -f $filename ]; then
echo "Stopping currently running Oscam...";
#STOP OSCAM
$OSCAM_STOP
echo "Copying the new version to $OSCAM_BIN";
cp -f $filename $OSCAM_BIN
echo "Starting Oscam";
#START OSCAM
$OSCAM_START
else
echo "Unable to extract latest version from archive. Aborting.";
fi
#CLEAN THE CREATED TEMP FILES
echo "Cleaning up temporary files...";
rm latest_oscam.tar.gz
rm $filename
cd ~
echo "All done!";
müsste sicher angepasst werden
Re: oscam autoupdater
Verfasst: Sa 20. Aug 2011, 12:39
von feissmaik
mmh naja - das Script läd quasi nur eine, anscheint extra erstellte, Datei "latest_oscam.tar.gz" und entpackt die... was wiederum heisst, wenn die diesen "dienst" mal einstellen also die datei nicht mehr aktualisieren, funktioniert das Script auch nicht mehr wirklich
IPC ist aber ja sowieso nicht für Receiver gedacht sondern für Kisten mit "richtigem" Linux - die können es also auch gut selber kompilieren
Besser fände ich dann schon eher meine private Lösung um die aktuelle build "schnell" zu kompilieren:
(vorrausgesetzt man hat subversion installiert und libusb etc, also wenn man IPC hat einmal "o compile" starten...)
Code: Alles auswählen
#!/bin/bash
### config - start
#svnURL="http://oscam.ump2002.net/svn/oscam/trunk"
#svnURL="http://streamboard.gmc.to/svn/oscam/trunk"
svnURL="http://streamboard.gmc.to/svn/oscam/tags/1.10"
oscamDIR="/var/emu/oscam/"
oscamBIN="oscam.x86"
oscamSTART="/var/emu/script/oscam start"
oscamSTOP="/var/emu/script/oscam stop"
### config - end
oscamBUILD="oscam-svn"
workDIR="/tmp/_FILES/"
mkdir -p $workDIR >/dev/null 2>&1
echo " "
if [ -z "$1" ]; then
echo "Downloading latest $oscamBUILD ..."
svn co $svnURL ${workDIR}${oscamBUILD}
else
echo "Downloading $oscamBUILD Revision $1 ..."
svn co -r $1 $svnURL ${workDIR}${oscamBUILD}
fi
echo " "
if [ ! -d "${workDIR}${oscamBUILD}" ]; then
echo "ERROR: ${workDIR}${oscamBUILD} does not exist. Download failed? Abort!"
exit 1
else
echo " "
echo "Successfully downloaded latest $oscamBUILD build."
echo "The bellow compiling will take some time ... Please be patient ..."
echo " "
sleep 2 ;#read -p "Please hit Enter to continue..."
fi
if [ ! -f "${workDIR}oscam-config.h" ]; then
echo "ERROR: Missing preconfigured file: ${workDIR}oscam-config.h"
echo "..running Compile-Config Menu.."
cd ${workDIR}${oscamBUILD} ; ./config.sh
cp -f oscam-config.h $workDIR
else
cp -f ${workDIR}oscam-config.h ${workDIR}${oscamBUILD}/
fi
cd ${workDIR}${oscamBUILD} ; mkdir build_dir ; cd build_dir
make clean ; cmake -DWEBIF=1 .. ; make
cp ${workDIR}${oscamBUILD}/build_dir/oscam ${oscamDIR}NEW.oscam
echo " "
if [ ! -f "${oscamDIR}NEW.oscam" ]; then
echo "ERROR: compilation failed? Abort!"
exit 1
else
echo "Successfully compiled new ${oscamBUILD} build"
fi
function _RENEW(){
echo "Preparing start of new ${oscamBIN}..."
$oscamSTOP
sleep 1
cd $oscamDIR
cp -f $oscamBIN old_${oscamBIN}
mv NEW.oscam $oscamBIN
sleep 1
$oscamSTART
PIDs=`pidof $oscamBIN`
echo "Done. Started NEW $oscamBIN with PIDs: $PIDs"
}
_RENEW
echo " "
# beep
echo -en "\007"
echo "Done!"
echo " "
#rm -rf ${workDIR}${oscamBUILD}
exit 0
Von einer Automatisierung halte ich aber auch nicht sooo viel weil unkontrolliert die oscam auszutauschen auch zu unbemerkten Problemen führen kann - wer weiss ob die "neuere" auch wirklich bugfree is und bei dir säuber läuft... Ich würd lieber davor sitzen und zugucken wollen wenn er's aktualisiert
Re: oscam autoupdater
Verfasst: Sa 20. Aug 2011, 13:04
von vöslauer
klar voll automatisch würd ich es auch nicht machen
leider hab ich noch nie o compile fertig gebracht , kamm immer am schluss fehlermeldung
Code: Alles auswählen
Readers:
WITH_CARDREADER : on
READER_NAGRA : off
READER_IRDETO : on
READER_CONAX : on
READER_CRYPTOWORKS : on
READER_SECA : on
READER_VIACCESS : on
READER_VIDEOGUARD : on
READER_DRE : on
READER_TONGFANG : on
Bereite 32bit Kompilierung vor..
-- pthread found. Adding pthread support
-- openssl found.
-- librt found (needed by libusb).
-- static libusb 1.0 found : /usr/local/lib/libusb-1.0.a . Adding smartreader support
-- librt found (needed by libusb).
-- Utils: pthread found. Adding pthread support
-- Utils: static libusb 1.0 found : /usr/local/lib/libusb-1.0.a . Adding smartre ader support
-- Utils: operating system: Linux
-- Utils: system type: i686-pc-linux
-- Utils: system: linux
-- Utils: cpu: i686
-- Utils: hw: pc
-- Utils: use system static libusb
--
--
-- operating system: Linux
-- system type: i686-pc-linux
-- system: linux
-- cpu: i686
-- hw: pc
-- use libcrypto functions
-- use system pcsc functions
-- use system pthread functions
-- use system libusb functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /var/emu/script/File/tmp/oscam-svn/build_di r
Folgendes compilieren kann einige Zeit in Anspruch nehmen...
Druecken Sie bitte <Enter> um fortzufahren...
[ 1%] Building C object CMakeFiles/csmodules.dir/module-stat.o
[ 2%] Building C object CMakeFiles/csmodules.dir/module-serial.o
[ 4%] Building C object CMakeFiles/csmodules.dir/module-cccshare.o
[ 5%] Building C object CMakeFiles/csmodules.dir/module-radegast.o
[ 6%] Building C object CMakeFiles/csmodules.dir/module-coolapi.o
[ 8%] Building C object CMakeFiles/csmodules.dir/module-constcw.o
[ 9%] Building C object CMakeFiles/csmodules.dir/module-monitor.o
[ 10%] Building C object CMakeFiles/csmodules.dir/module-camd35.o
[ 12%] Building C object CMakeFiles/csmodules.dir/module-newcamd.o
[ 13%] Building C object CMakeFiles/csmodules.dir/module-cccam.o
[ 14%] Building C object CMakeFiles/csmodules.dir/module-camd33.o
[ 16%] Building C object CMakeFiles/csmodules.dir/module-gbox.o
[ 17%] Building C object CMakeFiles/csmodules.dir/module-lcd.o
[ 18%] Building C object CMakeFiles/csmodules.dir/module-dvbapi.o
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c: In function âstapi_do_set_fi lterâ:
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2178: warning: unused variabl e âErrorCodeâ
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c: In function âstapi_do_remove _filterâ:
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2232: warning: unused paramet er âdemux_idâ
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c: In function âstapi_read_thre adâ:
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2335: warning: comparison bet ween signed and unsigned integer expressions
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2320: warning: unused variabl e âfoundâ
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c: In function âstapi_set_pidâ:
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2434: warning: unused paramet er ânumâ
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2434: warning: unused paramet er âpidâ
/var/emu/script/File/tmp/oscam-svn/module-dvbapi.c:2434: warning: unused paramet er âpmtfileâ
[ 20%] Building C object CMakeFiles/csmodules.dir/module-datastruct-llist.o
Linking C static library libcsmodules.a
[ 20%] Built target csmodules
[ 20%] Built target svnversion-log
[ 21%] Building C object CMakeFiles/csoscam.dir/oscam-simples.o
[ 22%] Building C object CMakeFiles/csoscam.dir/oscam-reader.o
[ 24%] Building C object CMakeFiles/csoscam.dir/oscam-log.o
[ 25%] Building C object CMakeFiles/csoscam.dir/oscam-http-helpers.o
[ 27%] Building C object CMakeFiles/csoscam.dir/oscam-http.o
[ 28%] Building C object CMakeFiles/csoscam.dir/oscam-chk.o
[ 29%] Building C object CMakeFiles/csoscam.dir/oscam-config.o
[ 31%] Building C object CMakeFiles/csoscam.dir/oscam-garbage.o
[ 32%] Building C object CMakeFiles/csoscam.dir/oscam-ac.o
Linking C static library libcsoscam.a
[ 32%] Built target csoscam
[ 33%] Building C object CMakeFiles/csreaders.dir/reader-cryptoworks.o
[ 35%] Building C object CMakeFiles/csreaders.dir/reader-common.o
[ 36%] Building C object CMakeFiles/csreaders.dir/reader-videoguard2.o
[ 37%] Building C object CMakeFiles/csreaders.dir/reader-videoguard-common.o
[ 39%] Building C object CMakeFiles/csreaders.dir/reader-videoguard1.o
[ 40%] Building C object CMakeFiles/csreaders.dir/reader-seca.o
[ 41%] Building C object CMakeFiles/csreaders.dir/reader-viaccess.o
[ 43%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o
[ 44%] Building C object CMakeFiles/csreaders.dir/reader-videoguard12.o
[ 45%] Building C object CMakeFiles/csreaders.dir/reader-dre.o
[ 47%] Building C object CMakeFiles/csreaders.dir/reader-tongfang.o
[ 48%] Building C object CMakeFiles/csreaders.dir/reader-irdeto.o
[ 50%] Building C object CMakeFiles/csreaders.dir/reader-conax.o
Linking C static library libcsreaders.a
[ 50%] Built target csreaders
[ 51%] Building C object csctapi/CMakeFiles/csctapi.dir/io_serial.o
[ 52%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t0.o
[ 54%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_phoenix.o
[ 55%] Building C object csctapi/CMakeFiles/csctapi.dir/atr.o
[ 56%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_azbox.o
[ 58%] Building C object csctapi/CMakeFiles/csctapi.dir/protocol_t1.o
[ 59%] Building C object csctapi/CMakeFiles/csctapi.dir/icc_async.o
[ 60%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_cool.o
[ 62%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sci.o
[ 63%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_sc8in1.o
[ 64%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_mp35.o
[ 66%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_pcsc.o
[ 67%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smartreader.o
[ 68%] Building C object csctapi/CMakeFiles/csctapi.dir/ifd_smargo.o
[ 70%] Building C object csctapi/CMakeFiles/csctapi.dir/t1_block.o
Linking C static library libcsctapi.a
[ 70%] Built target csctapi
[ 71%] Building C object algo/CMakeFiles/algo.dir/minilzo.o
Linking C static library libalgo.a
[ 71%] Built target algo
[ 72%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_mul.o
[ 74%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_word.o
[ 75%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_exp.o
[ 77%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_lib.o
[ 78%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_shift.o
[ 79%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_ecb.o
[ 81%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_sqr.o
[ 82%] Building C object cscrypt/CMakeFiles/cscrypt.dir/mem.o
[ 83%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_print.o
[ 85%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_ctx.o
[ 86%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_cbc.o
[ 87%] Building C object cscrypt/CMakeFiles/cscrypt.dir/des.o
[ 89%] Building C object cscrypt/CMakeFiles/cscrypt.dir/crc32.o
[ 90%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_div.o
[ 91%] Building C object cscrypt/CMakeFiles/cscrypt.dir/i_skey.o
[ 93%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_add.o
[ 94%] Building C object cscrypt/CMakeFiles/cscrypt.dir/bn_asm.o
[ 95%] Building C object cscrypt/CMakeFiles/cscrypt.dir/rc6.o
[ 97%] Building C object cscrypt/CMakeFiles/cscrypt.dir/md5.o
Linking C static library libcscrypt.a
[ 97%] Built target cscrypt
[ 97%] Built target svnversion
[ 98%] Building C object CMakeFiles/oscam.dir/oscam.o
Linking C executable oscam
libcsmodules.a(module-dvbapi.o): In function `stapi_startdescrambler':
module-dvbapi.c:(.text+0xdcc): undefined reference to `oscam_stapi_DescramblerDeallocate'
module-dvbapi.c:(.text+0xe24): undefined reference to `oscam_stapi_DescramblerAllocate'
libcsmodules.a(module-dvbapi.o): In function `stapi_cleanup_thread':
module-dvbapi.c:(.text+0x1591): undefined reference to `oscam_stapi_Close'
libcsmodules.a(module-dvbapi.o): In function `stapi_do_remove_filter':
module-dvbapi.c:(.text+0x27d0): undefined reference to `oscam_stapi_BufferDeallocate'
module-dvbapi.c:(.text+0x27e2): undefined reference to `oscam_stapi_SlotDeallocate'
module-dvbapi.c:(.text+0x2802): undefined reference to `oscam_stapi_FilterDeallocate'
libcsmodules.a(module-dvbapi.o): In function `stapi_off':
module-dvbapi.c:(.text+0x2c4c): undefined reference to `oscam_stapi_SignalAbort'
libcsmodules.a(module-dvbapi.o): In function `dvbapi_set_filter':
module-dvbapi.c:(.text+0x2f47): undefined reference to `oscam_stapi_FilterAllocate'
module-dvbapi.c:(.text+0x2f61): undefined reference to `oscam_stapi_PidQuery'
module-dvbapi.c:(.text+0x301d): undefined reference to `oscam_stapi_SlotClearPid'
module-dvbapi.c:(.text+0x307c): undefined reference to `oscam_stapi_SlotInit'
module-dvbapi.c:(.text+0x308f): undefined reference to `oscam_stapi_FilterAssociate'
module-dvbapi.c:(.text+0x30ad): undefined reference to `oscam_stapi_FilterSet'
module-dvbapi.c:(.text+0x3219): undefined reference to `oscam_stapi_FilterAssociate'
module-dvbapi.c:(.text+0x3237): undefined reference to `oscam_stapi_FilterSet'
libcsmodules.a(module-dvbapi.o): In function `stapi_read_thread':
module-dvbapi.c:(.text+0x401c): undefined reference to `oscam_stapi_SignalWaitBuffer'
module-dvbapi.c:(.text+0x4083): undefined reference to `oscam_stapi_BufferReadSection'
module-dvbapi.c:(.text+0x41d3): undefined reference to `oscam_stapi_BufferFlush'
libcsmodules.a(module-dvbapi.o): In function `dvbapi_send_dcw':
module-dvbapi.c:(.text+0x4fb4): undefined reference to `oscam_stapi_DescramblerSet'
module-dvbapi.c:(.text+0x50b0): undefined reference to `oscam_stapi_PidQuery'
module-dvbapi.c:(.text+0x5100): undefined reference to `oscam_stapi_DescramblerAssociate'
libcsmodules.a(module-dvbapi.o): In function `dvbapi_main_local':
module-dvbapi.c:(.text+0x6eed): undefined reference to `oscam_stapi_CheckVersion'
module-dvbapi.c:(.text+0x700a): undefined reference to `oscam_stapi_Open'
module-dvbapi.c:(.text+0x70ae): undefined reference to `oscam_stapi_LibVersion'
module-dvbapi.c:(.text+0x7173): undefined reference to `oscam_stapi_SignalAllocate'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_init':
ifd_phoenix.c:(.text+0x1e8): undefined reference to `STReader_Open'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_writesettings':
ifd_phoenix.c:(.text+0x105): undefined reference to `STReader_SetClockrate'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_setprotocol':
ifd_phoenix.c:(.text+0x125): undefined reference to `STReader_SetProtocol'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_close':
ifd_phoenix.c:(.text+0x145): undefined reference to `STReader_Close'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_receive':
ifd_phoenix.c:(.text+0x165): undefined reference to `STReader_Receive'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_transmit':
ifd_phoenix.c:(.text+0x185): undefined reference to `STReader_Transmit'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_reset':
ifd_phoenix.c:(.text+0x1a5): undefined reference to `STReader_Reset'
csctapi/libcsctapi.a(ifd_phoenix.o): In function `stapi_getstatus':
ifd_phoenix.c:(.text+0x1c5): undefined reference to `STReader_GetStatus'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_Close':
icc_async.c:(.text+0x1fa): undefined reference to `STReader_Close'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_Receive':
icc_async.c:(.text+0x36a): undefined reference to `STReader_Receive'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_Transmit':
icc_async.c:(.text+0x692): undefined reference to `STReader_Transmit'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_GetStatus':
icc_async.c:(.text+0xc1a): undefined reference to `STReader_GetStatus'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_Device_Init':
icc_async.c:(.text+0xdfe): undefined reference to `STReader_Open'
csctapi/libcsctapi.a(icc_async.o): In function `InitCard':
icc_async.c:(.text+0x1d07): undefined reference to `STReader_SetClockrate'
csctapi/libcsctapi.a(icc_async.o): In function `ICC_Async_Activate':
icc_async.c:(.text+0x2869): undefined reference to `STReader_Reset'
icc_async.c:(.text+0x2dd9): undefined reference to `STReader_SetProtocol'
collect2: ld returned 1 exit status
make[2]: *** [oscam] Fehler 1
make[1]: *** [CMakeFiles/oscam.dir/all] Fehler 2
make: *** [all] Fehler 2
mv: Aufruf von stat für âoscamâ nicht möglich: Datei oder Verzeichnis nicht gefunden
Die neue oscam.x86 befindet sich in /var/emu/oscam/
Die ALTE oscam.x86 wurde in old_oscam.x86 umbenannt!
ERROR: compile fehlgeschlagen? Abbruch!
root@CCcam-Server ~ >
hab mich nicht fragen getraut
Re: oscam autoupdater
Verfasst: Sa 20. Aug 2011, 13:13
von feissmaik
kommt drauf an welche Build du versucht hast zu kompilieren - kommt das denn bei jeder Revision?
hast du auch schon mal versucht die TAGS Version zu kompilieren?
Siehe dazu ->
http://ipc.pebkac.at/forum/viewtopic.ph ... =199#p1477
Re: oscam autoupdater
Verfasst: Sa 20. Aug 2011, 15:40
von vöslauer
habs so wie im link gemacht , immer noch 2 fehler und abbruch
Re: oscam autoupdater
Verfasst: So 21. Aug 2011, 09:32
von feissmaik
...kannst du bitte diesmal auch posten was für fehler ?
sorry aber wenn ich dir alles mühsahm aus der Nase ziehen muss und auch wiederholt schreiben soll was du machen sollst etc, betrachte ich die Sache als egal (pebkac) - das spammed hier nur unnötig alles zu
an dem Script wird es denk ich kaum liegen - das Compilieren ansich wird ja bereits nicht beendet also musste dich damit wenn dann ans StreamBoard direkt wenden oder eben selber herrausfinden wieso das bei dir nicht gehen will...