Talk:Script examples
From DD-WRT Wiki
(Difference between revisions)
Revision as of 16:36, 10 September 2008 (edit) Maven (Talk | contribs) (Small change to wireless scanner script for v24) ← Previous diff |
Current revision (16:53, 11 May 2010) (edit) (undo) Glenn (Talk | contribs) m (Talk:Script Examples moved to Talk:Script examples: small start letters) |
||
(One intermediate revision not shown.) | |||
Line 7: | Line 7: | ||
I was getting bleed onto the second line using the provided (and very functional) script. I modified the code to shorten the length of the signal strength meter to fit nicely on one line | I was getting bleed onto the second line using the provided (and very functional) script. I modified the code to shorten the length of the signal strength meter to fit nicely on one line | ||
+ | Change this: | ||
+ | fmt = "%s%-15s %s%0"sigstrength"d "reset erase2end "\n %s %s%-4d %s%-4d %s%-4d %s%2s " reset erase2end "\n" erase2end "\n"; | ||
- | + | To This: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
fmt = "%s%-15s %s%0"sigstrength/3"d "reset erase2end "\n %s %s%-4d %s%-4d %s%-4d %s%2s " reset erase2end "\n" erase2end "\n"; | fmt = "%s%-15s %s%0"sigstrength/3"d "reset erase2end "\n %s %s%-4d %s%-4d %s%-4d %s%2s " reset erase2end "\n" erase2end "\n"; | ||
- | printf fmt, cName,name[x],cStrength,0,x,cSignal,rssi[x],cNoise,noise[x],cChannel, channel[x],cCaps,caps[x]; | ||
- | rssi[x] = "-100 xxxx"; | ||
- | ln++; | ||
- | } | ||
- | if (ln ==0) | ||
- | print red "No Results - Do you have survey capability? \nThis program depends on site_survey to run. Hit ctrl-c to stop."; | ||
- | |||
- | print erase2end; | ||
- | } | ||
- | } | ||
- | ' |
Current revision
[edit] DNS Setup
With the freedns.afraid.org, can't that be done using Inadyn? Alex 15:42, 3 Sep 2006 (CEST)
[edit] Small change to wireless scanner script for v24
I was getting bleed onto the second line using the provided (and very functional) script. I modified the code to shorten the length of the signal strength meter to fit nicely on one line
Change this:
fmt = "%s%-15s %s%0"sigstrength"d "reset erase2end "\n %s %s%-4d %s%-4d %s%-4d %s%2s " reset erase2end "\n" erase2end "\n";
To This:
fmt = "%s%-15s %s%0"sigstrength/3"d "reset erase2end "\n %s %s%-4d %s%-4d %s%-4d %s%2s " reset erase2end "\n" erase2end "\n";