I am using a modified softcam script to do some stuff on softcam changes.
Now when doing a software update the script is overwritten with the default one. Is there a way for this not to happen?
Posted 18 February 2022 - 17:21
Exactly so.
Enigma2 usually takes into account and checks the script files /etc/init.d/softcam and /etc/init.d/softcam.<softcam-name>
The original "init.d" script apparently changed during the Enigma2-OpenPLi update. If you use Oscam installed as an IPK from the OpenPLi feed server, then with the new Oscam version, this softcam script will also be overwritten (or will be added) as the new updated "init.d" softcam script.
So... the new "init.d" script will be added to Enigma2 again, after Enigma2 updating, and there will be two "init.d" softcam scripts (one of your own and one original after its update), for the same Oscam.
It would be better to use the manual Softcam installation method. Do not use the IPK package to install Softcam. And you will solve your problem. See also my instructions, in my softcam script: https://github.com/s3n0/e2scripts (because I don't want to describe the whole thing here again ... sorry). In this case, you don't even have to rename this file ... you can leave the name "softcam". It will not be updated by Enigma2 and therefore will not be overwritten by a new - ie updated script.
Edited by s3n0, 18 February 2022 - 17:31.
Posted 15 July 2022 - 13:54
Hi @Rudi1 .
I don't have it included on my git-hub because there is no reason for Oscam to crash.
If Oscam crashes (often), it is an Oscam or system error and the error must be resolved !
But... I can add this shell script there, if you want. However, it will also depend on the Linux system or the Enigma2 distribution from which this shell-script is run. Shell scripts for "init.d (run-level)" and "systemd (.service)" system launchers are slightly different.
Also, this can be scheduled in the CRON service. You add a simple conditional start of Oscam there (if Oscam is not running, it will start). CRON commands are read only every one minute at the earliest.
Edited by s3n0, 15 July 2022 - 13:57.
Posted 20 August 2022 - 22:01
Also, this can be scheduled in the CRON service. You add a simple conditional start of Oscam there (if Oscam is not running, it will start). CRON commands are read only every one minute at the earliest.
Thanks for your answer,I do like you say and after one month no problem with oscam.
VU+Zero
Osmio4K
0 members, 2 guests, 0 anonymous users