Talk:LaFonera Software Heartbeat-dev

From DD-WRT Wiki

Jump to: navigation, search

[edit] Talk

>> i will reduce the number of files downloaded but not reduce any functionality like he did.

I'm not sure what you added to the code Wildblue, but as the Alternative Hotspot Script is literally Freddy's original code other than a few Fonera specific variables (and no logging), which itself is the original code formatted slightly differently, then I don't see how it can have any reduced functionality unless you added something additional to yours (which seems mostly modified futejia code, who's incorrectly assumed you have to download the whole fw for the heartbeat to work).

I've also found a small bug in cronjob useage (may not really be a bug, just a feature, but everyone's written code assuming it would work so...). Not tested it in the Fonera yet, but it's happened in 3 WRT54Gs running DD-WRT RC-1 through RC-3 so...

Entries saved in to /tmp/crontab and custom scripts created in /tmp/cron.d/ are deleted everytime the WAN address is lost then regained. Something to do with it running a load of startup like scripts (ip-up, rc.firewall...) but not the actual "startup commands". Anyway, the way around it is to add all cronjobs via the web control panel in the Additional Cron Jobs box as these are recreated (in /tmp/cron.d/cron_jobs) after the WAN ip is refreshed. In other words, may be appropriate to get rid of the cronjob line in startup commands and add info on adding it to the cron jobs box.
--Pepsimax2k 14:37, 7 October 2007 (CEST)

>> Please do the changes you want to change in the code on this page and i will update the code of the official dd-wrt heartbeat as soon as i reviewed the code.
--wildblue 07:24, 8 October 2007 (CEST)


Done that now. Wondering whether to get rid of the % 1800 sleep parts in favour of just a "15/45" setting in the cron line to save long sleep processes running. I guess if loads of people with correct ntp settings and the same cron time ran it, could cause slight congestion on fon server when they all ran their heartbeat at the same time. Probably unlikely though. --Pepsimax2k 12:06, 8 October 2007 (CEST)


I think you misunderstood the code!?!
- the sleep part is not executed when running cron-mode. its only executed if running in standard-mode.
- why did you change the automatic commit to cron? your way is only one more step for the user... - i think we should test out a modification of the code quite carefully before placing new code in the howto-part of the wiki, as i saw some problems with the alternative way. pay attention that the LaFonera does not work the same way like a WRT. its quite different. (i only saw your great addition to the chilispot-part for WRTs).
- Do you have a LaFonera @home?

--wildblue 02:43, 10 October 2007 (CEST)