Hello,
No need to update oscam manually (download, decompress, stop the oscam, copy the new bin, add the attributes, reboot the box, start oscam ....)
No need to do the same again the next day because there were 3 revisions of oscam during the night
I found and adapted a script that uploads and updates your oscam without you reporting it
How? follow the guide :
1: Copy the script attached to this post in the script folder of your image (For Blackhole it's in / usr / script /)
2: If you need to customize the script according to your image:
Oscambin = "/ usr / bin / oscam"; # Change this line if your oscam bin has a different folder
Oscamstart = "/ usr / camscript / Ncam_oscam.sh start" # specify the path and name of the oscan launch script according to your image
Oscamstop = "/ usr / camscript / Ncam_oscam.sh stop" # specify the path and name of the oscan launch script according to your image
3: Give the script the 755 attributes
4: Add automatic script execution to your Cron Manager (Under blackhole, blue button twice, then Cron Manager, Command: /usr/script/Oscam_update.sh) or with dcc add the following line 15 00 * * * / Usr / script / Oscam_update.sh in /etc/bhcron/bh.cron and / etc / bhcron / root, do the same thing under other images.
PS: You can run the script when you want with green button on the remote control, then blue button (script) and click on the Oscam_update script.
QuoteDisplay More#! / Bin / sh
##################################################################### ##################################################################### #####################################################
############## OSCAM UPDATE ###################################################### ###############
# This script updates oscam to the latest version #
# This script is suplped for Vu + and dreambox with oscam mips-tuxbox-oe2.0 #
#
# The true Author is unknown but thanks to him #
......
##################################################################### ##################################################################### #####################################################
Oscambin = "/ usr / bin / oscam"; # Change this line if your oscam bin has a different folder
Oscamstart = "/ usr / camscript / Ncam_oscam.sh start" # specify the path to the oscan launch script your image
Osperstop = "/ usr / camscript / Ncam_oscam.sh stop" # specify the path to the oscan launch script
Tipo = "webif-Distribution"
Hardware = "mips-tuxbox-oe2.0"
##################################################################### ##################################################################### ################################################################################################### #
## Do not change from there at the risk of killing your mother-in-law or Reverse the magnetic field of the Earth :-) ##
##################################################################### ##################################################################### ################################################################################################### #
Pageold = "http://download.oscam.cc/index.php?&direction=0&order=mod&directory=1.20_TRUNK/$hardware/archives"
Prelinkold = "http://download.oscam.cc/index.php?action=downloadfile&filename=oscam-svn%s-$hardware-$tipo.tar.gz&directory=1.20_TRUNK/$hardware/archives&"
Page = "http://download.oscam.cc/index.php?&direction=0&order=mod&directory=1.20_TRUNK/$hardware"
Prelink = "http://download.oscam.cc/index.php?action=downloadfile&filename=oscam-svn%s-$hardware-$tipo.tar.gz&directory=1.20_TRUNK/$hardware&"
R_flag =
H_flag =
O_flag =
While getopts "ohr:" opt; make
Case $ opt in
O) o_flag = 1; Page = $ pageold; Prelink = $ prelinkold ;;
R) r_flag = 1; Rev = "$ OPTARG";
H) h_flag = 1;
Esac
Completed
Yes [! -z '$ h_flag']; so
Printf "\ nUser: $ 0 [-ho] [-r svn revision] \ n \ n \
Esempi: \ n \
$ 0 -h # Display this output message. \ NOT \
$ 0 # Download and install the latest revision svn \ n \
$ 0 -r 10200 # Download and install revision 10200, if present. \ N \ t \ t \ t Try with -or 10200 if it fails. \ NOT \
$ 0 -o # Download and install the latest svn revision in the archives \ n \
$ 0 -or 9800 # Download and install the 9800 revision of the folder \ n \ n "
Output 0
Fi
Cd / tmp
If [-z '$ r_flag']; so
Wget -O page.tmp $ page
($ 0 -9) * \ ([0-9] * \). * $ / \ 1 / ')
Fi
Filename = "oscam.tar.gz"
Extract = "tar -xvzf $ filename"
Echo "Download oscam-svn $ rev ..."
Wget -O $ filename $ (printf $ prelink $ rev)
If [-f $ filename]; so
Echo "Extraction of oscam-svn $ rev- $ hardware ..."
$ Preview
If [-f oscam]; so
Echo "Extraction Ok"
Echo "Oscam stop ..."
$ Oscamstop
Echo "Copy of the $ oscambin"
Cp -f oscam $ oscambin> / dev / null 2> & 1
Echo "Start the Oscam ..."
$ Oscamstart
Other
Echo ""
Echo "Extraction error"
Echo "Revision not available!"
If [-z '$ o_flag']; so
Echo ""
Echo "try with: $ 0 -or $ rev"
Echo ""
Fi
Fi
Other
Echo "Remote Download Error"
Echo ""
Fi
Rm page.tmp> / dev / null 2> & 1
Rm oscam> / dev / null 2> & 1
Rm $ filename> / dev / null 2> & 1
Cd ~
Now your receiver will check every night if there is a new oscam version available, if so, it will be downloaded and installed without any intervention from you
Script for Solo 4K
QuoteDisplay More#! / Bin / sh
######################################################################## #######################################################
################ OSCAM UPDATE ########################################## #######
# This script updates oscam to the latest version #
# This script is adpaté for Vu + and dreambox with oscam mips-tuxbox-oe2.0 #
# #
# #
# #
######################################################################## #######################################################
Oscambin = "/ usr / bin / oscam";
Oscamstart = "/ usr / camscript / Ncam_Oscam.sh start"
Oscamstop = "/ usr / camscript / Ncam_Oscam.sh stop"
Tipo = "webif-Distribution"
Hardware = "armV7"
######################################################################## ######################################################################## ###########
## Do not change from there at the risk of killing your beautiful mother or Reverse the Earth's magnetic field :-) ##
######################################################################## ######################################################################## ###########
Pageold = "http://download.oscam.cc/index.php?&direction=0&order=mod&directory=1.20_TRUNK/$hardware/archives"
Prelinkold = "http://download.oscam.cc/index.php?action=downloadfile&filename=oscam-svn%s-$hardware-$tipo.tar.gz&directory=1.20_TRUNK/$hardware/archives&"
Page = "http://download.oscam.cc/index.php?&direction=0&order=mod&directory=1.20_TRUNK/$hardware"
Prelink = "http://download.oscam.cc/index.php?action=downloadfile&filename=oscam-svn%s-$hardware-$tipo.tar.gz&directory=1.20_TRUNK/$hardware&"
R_flag =
H_flag =
O_flag =
While getopts "ohr:" opt; do
**Case $ opt in
*******O) o_flag = 1; Page = $ pageold; Prelink = $ prelinkold ;;
*****R) r_flag = 1; Rev = "$ OPTARG";
*****H) h_flag = 1;
**Esac
Done
If [! -z '$ h_flag']; Then
**Printf "\ nUser: $ 0 [-ho] [-r svn revision] \ n \ n \
Esempi: \ n \
*$ 0 -h # Display this output message. \ N \
*$ 0 # Download and install the latest revision svn \ n \
*$ 0 -r 10200 # Download and install revision 10200, if present. \ N \ t \ t \ t Try with -or 10200 if it fails. \ N \
*$ 0 -o # Download and install the latest svn revision in the archives \ n \
*$ 0 -or 9800 # Download and install the 9800 revision from folder \ n \ n "
*Exit 0
Fi
Cd / tmp
If [-z '$ r_flag']; Then
*Wget -O page.tmp $ page
*($ 0 -9) * \ ([0-9] * \) . * $ / \ 1 / ')
Fi
Filename = "oscam.tar.gz"
Extract = "tar -xvzf $ filename"
Echo "Download oscam-svn $ rev ..."
Wget -O $ filename $ (printf $ prelink $ rev)
If [-f $ filename]; Then
**Echo "Extraction of oscam-svn $ rev- $ hardware ..."
**$ Extract
**If [-f oscam]; Then
*****Echo "Extraction Ok"
*****Echo "Oscam stop ..."
*****$ Oscamstop
*****Echo "Copy of the $ oscambin"
*****Cp -f oscam $ oscambin> / dev / null 2> & 1
*****Echo "Starting the Oscam ..."
*****$ Oscamstart
**Else
*****Echo ""
*****Echo "Extraction error"
*****Echo "Revision not available!"
*****If [-z '$ o_flag']; Then
********Echo ""
********Echo "try with: $ 0 -or $ rev"
********Echo ""
*****Fi
**Fi
Else
**Echo "Remote download error"
**Echo ""
Fi
Rm page.tmp> / dev / null 2> & 1
Rm oscam> / dev / null 2> & 1
Rm $ filename> / dev / null 2> & 1
Cd ~
This post is totally free you do not need clicked
* Thank you or i like this post
I am here for shared
If you think i like it or thanks you for deciding
Happy update :fist bump: