![]() |
| |||||||
| Dreambox Discussion and unofficial support for Dream Multimedia's Linux based Dreambox. Includes DM500 clones. |
![]() |
| | LinkBack (6) | Thread Tools | Search this Thread | Display Modes |
| |
#1 (permalink)
|
| Junior Member | This a pretty crude method but it has been working now for 2 weeks. I have multiple Dm's sharing off 1 Dm500 not connected to anything except for a card reader and ethernet port no dish. This server is running cccam2.0.8 and the config had no B: #### line. All the clients are cccam 2.0.4 or 5 expect for one which has 2.0.5 & 2.0.8. This client is the only one allowed to send Emm's to the server. On this box the default cam is 2.0.5 but "weather active" is set to 2.0.8. So in the timer section of this DM500 I get the box to switch to weather active between 4:30am and 5:30am every day. No great solution but hey it works. |
| | |
| | #3 (permalink) |
| Special Member | good thinking billy - not too sure what "weather active" is though I note that cccam restarts whenever a new cccam.cfg is copied in you could achieve a similar thing by having two cron jobs one to copy in a config which allows the updates and one hour later a config which doesnt (normal operating) In theory might work like yours again - good thinking mate |
| | |
| Sponsored Links | |
| | |
| | #4 (permalink) |
| Premium Member | The best way I have seen and have setup. Run at Linux CCcam server - Debian, Clasrkconnect with basic kernel and services. CCcam 2.09 installed, all clients connect with CCcam 1.71 except one client run 2.09 to update the card. Create to CCcam.cfg files one with the B: lione one without. Schedule a Cron job at 3am every night to copy one config over the other for 5 minutes then schedule another Cron job to copy the file without the B: back. Work like a treat. My mates server has run for 3 months untouched like this. |
| | |
| | #5 (permalink) |
| Junior Member | Sounds like a good idea "gado" ! Care to share the script or could someone help out with one. Pls Not very good at scripts Say from /media/cf/CCCamBlocked with config file in the folder. And the other from /media/cf/CCCamUnblocked with config file in the folder. |
| | |
| | #6 (permalink) |
| Junior Member | Yeah, I got this to work ![]() Here is the script I created /var/etc/cccamAU.sh #!/bin/sh CAMNAME="CCcam AU" # end # This method enables AU enable_au () { cp /var/etc/CCcam.cfg /var/etc/CCcamDefault.cfg cp /var/etc/CCcamAU.cfg /var/etc/CCcam.cfg } # This method disables AU disable_au () { cp /var/etc/CCcamDefault.cfg /var/etc/CCcam.cfg } case "$1" in enable) echo "[SCRIPT] $1: $CAMNAME" enable_au ;; disable) echo "[SCRIPT] $1: $CAMNAME" disable_au ;; *) exit 1 ;; esac exit 0 then set a cron job 0 3 * * * /var/etc/cccamAU.sh enable 5 3 * * * /var/etc/cccamAU.sh disable create yourself a /var/etc/cccamAU.cfg with the B: line removed thats it. Last edited by Zepic : 07-08-08 at 12:54 PM. Reason: typo |
| | |
| Sponsored Links | |
| | #8 (permalink) | |
| Premium Member | Been playing around with this. what do you mean setup a cron job, 0 3 * * * /var/etc/cccamAU.sh enable 5 3 * * * /var/etc/cccamAU.sh disable Do I have to create 2 separate script files, one call enable and one disable? Quote:
| |
| | |
| | #9 (permalink) |
| Premium Member | cccamAU.sh is the script that is ran. The script file is the line from "#!/bin/sh" to the line exit 0. enable and disable are the parameters passed to the script.
__________________ By reading this, you have already given me control over a tiny slice of your mind |
| | |
| Sponsored Links | |
| | |
| | #11 (permalink) |
| Premium Member | The script does not check what state it was in prior. It simply copies one file if the enabled parameter was passed and copies a different file if the disabled parameter was passed. Personly I would not use the script. I would just have the 2 cron jobs do the cp command for me.
__________________ By reading this, you have already given me control over a tiny slice of your mind |
| | |
| | #12 (permalink) |
| Premium Member | Let me give you guys a firther hint to improving your scripts. Since I didnt write mine I wont post them. But here is what is in them. Block Script Try this cat the CCcam.cfg file using a pipe using the Sed command to insert the B line and output this file to a CCcam.block in the same script copy the CCcam.cfg.block back the the CCcam.cfg file. No Block Script. Cat the CCcam.cfg with the pipe using the sed command to insert at # in front of the B: line and send it to a CCcam.noblock file. Copy the CCcam.cfg.noblock to the CCcam.cfg. Schedule the no block script to run at 3.00 to get the update then the block scripts to run at 3.05. This means you can make edits to your CCcam.cfg to add users without the need of two separate files to update. Pretty kewl. |
| | |
| Sponsored Links | |
| | |
| | #13 (permalink) |
| Premium Member | all sounds great, but scripts is not my forte' I have DM7000 running Gemini V4.4 using the Crond menu add the script CCcamdAU.sh as per Zepic's post. Don't know where you add the enable parameter. I have gone to the var/etc/cron/crontabs and modified the file and added the enable on one line then disable on the second line. 03 20 * * * /var/script/CCcamAU.sh enable 05 20 * * * /var/script/CCcamAU.sh disable When I go to the Crond menu on the dream it shows the two, one says enable and the other disable and the right time it should run. but does not run. help please. Thanks |
| | |
| | #14 (permalink) | |
| Junior Member | Quote:
You'll need to enable the crond service on your dreambox for it to run. On a PLI image its in the settings->services menu, probably something similar on the gemini. Also it looks like you've set yours to enable at 8:03 pm and disable at 8:05 pm Not sure if 2 minutes is enough. Also you may not want to do it at prime TV watching time as it will cause pauses every 15 seconds or so while it is enabled. 1 more thing, make sure you have execute permissions set on the script. Last edited by Zepic : 14-08-08 at 11:55 AM. Reason: more info added | |
| | |
| | #15 (permalink) | |
| Premium Member | Quote:
Yes Crond service is running, Times shown where only test times I was using last night, once it works I will change them to some time in early morning. execute permissions?? at the moment they are 644, should I change it to 755? | |
| | |
| Sponsored Links | |
| | |
| | #17 (permalink) |
| Premium Member | Ok, changed permissions still nothing. So I created two seperate scripts based on what zepic posted, added them to the Crond service on my dreambox and they work great. So I thought I would post the scripts. Script 1, #!/bin/sh CAMNAME="CCcamAU_Unblock" # end # This method enables AU { cp /var/etc/CCcam.cfg /var/etc/CCcamDefault.cfg cp /var/etc/CCcamAU.cfg /var/etc/CCcam.cfg } echo "[SCRIPT] $1: $CAMNAME" ;; exit 1 ;; esac exit 0 and Script 2, #!/bin/sh CAMNAME="CCcamAU_Block" # end # This method disables AU { cp /var/etc/CCcamDefault.cfg /var/etc/CCcam.cfg } echo "[SCRIPT] $1: $CAMNAME" ;; exit 1 ;; esac exit 0 |
| | |
![]() |
LinkBacks (?)
LinkBack to this Thread: http://www.austech.info/dreambox/9477-keep-whitey-updating-using-cccam.html | ||||
| Posted By | For | Type | Date | |
| nds 1 newcs xp | BoardReader | This thread | Refback | 14-11-08 03:07 AM | |
| CCCAM 2 02 - forum talks | BoardReader | This thread | Refback | 26-10-08 06:48 PM | |
| CCCAM SERVER - Page 2 | BoardReader | This thread | Refback | 16-10-08 01:58 AM | |
| Dreambox [Archive] - Austech | This thread | Refback | 06-09-08 10:48 PM | |
| CCCAM SERVER - Page 8 | BoardReader | This thread | Refback | 01-09-08 08:49 PM | |
| Dreambox on Austech.Info | BoardReader | This thread | Refback | 17-08-08 11:15 PM | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |