#
#  Author: pr2
#  for: www.oscam.to
#
#  Thanks to demosat for the tests and suggestions.
#

Introduction.
-------------

The purpose of those scripts is to generate a file oscam.srvid based on packages available from:
http://en.kingofsat.net/packages.php

The CAID will be retrieved from OSCam Wiki page:  
http://streamboard.gmc.to/wiki/OSCam/en/Config/oscam.provid

This is linux standard shell script that should run on any Linux system.

How to install.
---------------

Simply unpack the srvidking.tgz file on your favorite location, be carefull that some temporary files 
will be created and the resulting file will be placed there too.

Example:

In telnet:
mkdir /media/hdd/srvidking

FTP the file srvidking.tgz to the folder /media/hdd/srvidking

In telnet:
cd /media/hdd/srvidking
tar -xvzf srvidking.tgz

As result you will get 3 files:

1config.sh
2srvidking.sh
readme.txt

How to use:
-----------


Script: 1config.sh

First you need to run the script:  ./1config.sh  this will generate a file called srvidking.cfg

To run the script in telnet:

cd /media/hdd/srvidking
./1config.sh

Then edit the file srvidking.cfg and remove the # on the lines with the packages that you want to generate the oscam.srvid files.

Script: 2srvidking.sh

To run the script in telnet:

cd /media/hdd/srvidking
./2srvidking.sh

Comments:
---------

The resulting files will be oscam.srvid.PACKAGE
FTA (Clear) channels are automatically skipped.
If the package only contains FTA (Clear) channels the generate file will have a 0 byte size.

Resulting file will display:
CAID:SID|Package Name Sat.Pos.|Channel Name|TV/RADIO/DATA|Channel Type|

If the CAID is not found in the Wiki page it will be replaced by UNKNOWN, so please check the resulting file.

Please help us completing the missing CAID in this thread:
http://oscam.to/wbb3/index.php?page=Thread&threadID=10482

Enjoy,

Pr2 for http://www.oscam.to