locaterobin / wrtbwmon

Automatically exported from code.google.com/p/wrtbwmon
0 stars 0 forks source link

"Disabled Math Support" Syntax Error #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Background:
* I use a Linksys WRT54GS v.6 router with DD-WRT v.24 SP2.
* I downloaded the most recent wrtbwmon yesterday (1/11/2010), saving it in 
/tmp/
* I set up the cron jobs, as suggested on the 'deploying' page.

*******************************

After 20 hours, I realized that I was not getting proper output.  I tried 
to run a few of the commands that cron runs myself, like:
% /tmp/wrtbwmon setup br0
and
% /tmp/wrtbwmon update /tmp/usage.db peak

But I got an error: 
/tmp/wrtbwmon: line 90: syntax error: you disabled math support for 
$((arith)) syntax

Any suggestions?  Do you have any ideas how to enable math support on DD-
WRT?

Thanks, and sorry for being a script n00b!

Original issue reported on code.google.com by taylor.r...@gmail.com on 11 Jan 2010 at 3:43

Attachments:

GoogleCodeExporter commented 9 years ago
Alright.... it looks like sh in the micro version of linux does not support 
in-line 
math of the form $((Arithmetic)), like line 90: $((${BYTES}/1000)), and lines 
91, 
116, 117, 119, and 120.  Are there other ways to do in-line math?  Programs 
like bc 
and expr  are not loaded in dd-wrt, so we can't use those.

Any suggestions on how I can alter lines 90, 91, 116, 117, 119, and 120 to 
accommodate dd-wrt v.24 SP2?

Thank you!

Original comment by taylor.r...@gmail.com on 11 Jan 2010 at 7:13

GoogleCodeExporter commented 9 years ago
There are issues with the micro version of dd-wrt.  The minimum supported 
version of
dd-wrt is micro-plus.
http://www.dd-wrt.com/wiki/index.php/Micro-plus
The WRT54GS v6 does not seem to support it though, confirmed by
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=281390 :(
I will have a look on how to do arithmetics differently later, but there may be 
other
issues down the track. Busybox in the micro version is way too much stripped 
down.

Original comment by emmanuel...@gmail.com on 11 Jan 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Cool; thanks for getting back to me and being so thorough!  I'll look into the 
in-line 
math thing some more myself, and see what I can find.  Thanks!

Original comment by taylor.r...@gmail.com on 12 Jan 2010 at 2:15

GoogleCodeExporter commented 9 years ago
Closed issue

Original comment by emmanuel...@gmail.com on 23 Jun 2010 at 8:31