My_Page

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2, 3, 4, 5, 6 ... 24, 25, 26  Next
Author Message
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 05, 2009 21:53    Post subject: Reply with quote
LOM wrote:
DHC_DarkShadow wrote:
Anyone know how to call the build number?




/sbin/softwarerevision


sorry asked the wrong question, I am actually looking to get the output from Status-->Router-->Firmware Version

_________________
The New Me
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sat Dec 05, 2009 22:55    Post subject: Reply with quote
DHC_DarkShadow wrote:
sorry asked the wrong question, I am actually looking to get the output from Status-->Router-->Firmware Version

I don't think there's any easy way. It's pieced together by an internal c function that uses variables compiled into it along with some from nvram.

http://svn.dd-wrt.com:8000/dd-wrt/browser/src/router/kromo/cisco_wrt54g_en/Status_Router.asp?rev=3034#L164

get_firmware_version()

http://svn.dd-wrt.com:8000/dd-wrt/browser/src/router/httpd/visuals/lib.c?rev=13323#L36

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Dec 09, 2009 1:48    Post subject: Reply with quote
phuzi0n wrote:
DHC_DarkShadow wrote:
sorry asked the wrong question, I am actually looking to get the output from Status-->Router-->Firmware Version

I don't think there's any easy way. It's pieced together by an internal c function that uses variables compiled into it along with some from nvram.

http://svn.dd-wrt.com:8000/dd-wrt/browser/src/router/kromo/cisco_wrt54g_en/Status_Router.asp?rev=3034#L164

get_firmware_version()

http://svn.dd-wrt.com:8000/dd-wrt/browser/src/router/httpd/visuals/lib.c?rev=13323#L36


Is there or can there be an easier way Eko?

I have tried every way I can to incorporate that code and it just isn't working.

EDIT: This is what I got so far...

Code:
echo "<fieldset>"
echo "<legend>Build</legend>"
echo "<pre> ($(nvram get os_date))$(/sbin/softwarerevision)</pre>"
echo "</fieldset><br />"

_________________
The New Me
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1258
Location: Ohio USA

PostPosted: Wed Dec 09, 2009 2:52    Post subject: Reply with quote
DHC_DarkShadow wrote:
Is there or can there be an easier way Eko?

I have tried every way I can to incorporate that code and it just isn't working.

EDIT: This is what I got so far...

Code:
echo "<fieldset>"
echo "<legend>Build</legend>"
echo "<pre> ($(nvram get os_date))$(/sbin/softwarerevision)</pre>"
echo "</fieldset><br />"

Code:
echo "<fieldset>"     
echo "<legend>Build</legend>" 
echo "<pre> $(cat /tmp/loginprompt | grep 'revision' | tr -d ')' | awk '{print $5}') </pre>"
echo "</fieldset><br />"

Results:
Quote:
13401


Or:
Code:
echo "<fieldset>"     
echo "<legend>Build</legend>" 
echo "<pre> $(cat /tmp/loginprompt | grep 'revision' | awk '{print $3, $4, $5}') </pre>"
echo "</fieldset><br />"

Results:
Quote:
(SVN revision: 13401)

_________________
(05/02/17) std - 31924
Linksys WRT400N
Buffalo WHR-G300N

Got OpenDNS?
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Dec 09, 2009 3:13    Post subject: Reply with quote
Thanks Luniz2k1

The output I am looking for is

DD-WRT v24-sp2 (Dec 7 2009) big (SVN revision 13401M NEWD Eko)

Like on the about page or even what's in the upper right hand corner of the GUI on the normal router pages.

DD-WRT v24-sp2 (12/07/09) big

_________________
The New Me
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1258
Location: Ohio USA

PostPosted: Wed Dec 09, 2009 3:17    Post subject: Reply with quote
Then just do:
Code:
echo "<fieldset>"     
echo "<legend>Build</legend>" 
echo "<pre>$(cat /tmp/loginprompt) </pre>"
echo "</fieldset><br />"

Results:
Quote:
DD-WRT v24-sp2 custom (c) 2009 NewMedia-NET GmbH
Release: 12/08/09 (SVN revision: 13415)

_________________
(05/02/17) std - 31924
Linksys WRT400N
Buffalo WHR-G300N

Got OpenDNS?


Last edited by Luniz2k1 on Wed Dec 09, 2009 3:21; edited 1 time in total
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Dec 09, 2009 3:18    Post subject: Reply with quote
Luniz2k1 wrote:
Then just do:
Code:
echo "<fieldset>"     
echo "<legend>Build</legend>" 
echo "<pre> $(cat /tmp/loginprompt) </pre>"
echo "</fieldset><br />"

Results:
Quote:
DD-WRT v24-sp2 custom (c) 2009 NewMedia-NET GmbH
Release: 12/08/09 (SVN revision: 13415)


WHAT!!!! you have been holding out all this time? Laughing

Thanks man

_________________
The New Me
jinjorge
DD-WRT User


Joined: 09 Nov 2009
Posts: 61

PostPosted: Wed Dec 09, 2009 3:27    Post subject: Reply with quote
DHC_DarkShadow wrote:
OK i got screenshots

My Page1
My Page2
My Page3
My Page4


Tried to take a look at your screenshots to no avail... are you planning to repost them or post a png?

reading through the thread, you guys have some good stuff here.

J
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Dec 09, 2009 4:40    Post subject: Reply with quote
jinjorge wrote:
DHC_DarkShadow wrote:
OK i got screenshots

My Page1
My Page2
My Page3
My Page4


Tried to take a look at your screenshots to no avail... are you planning to repost them or post a png?

reading through the thread, you guys have some good stuff here.

J


Sorry, duuno why at the moment it is denying access there but this ought to do.

http://dd-wrt.darkhaven.org/mypage/

_________________
The New Me
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Wed Dec 09, 2009 5:02    Post subject: Reply with quote
Pretty slick!
jinjorge
DD-WRT User


Joined: 09 Nov 2009
Posts: 61

PostPosted: Wed Dec 09, 2009 6:40    Post subject: Reply with quote
DHC_DarkShadow wrote:
jinjorge wrote:
DHC_DarkShadow wrote:
OK i got screenshots

My Page1
My Page2
My Page3
My Page4


Tried to take a look at your screenshots to no avail... are you planning to repost them or post a png?

reading through the thread, you guys have some good stuff here.

J


Sorry, duuno why at the moment it is denying access there but this ought to do.

http://dd-wrt.darkhaven.org/mypage/


very nice!!! Thanks for posting the screenshots with the scripts. Makes it very easy to follow.

J
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Sun Dec 20, 2009 16:54    Post subject: Reply with quote
Thx to Eko, DHC_DarkShadow for the nice scripts, autobot for pointing me to the mypage_scripts variable and phuzi0n for nvram usage.

EDIT (egc): Revised version which works with build 50927 and higher can be found at: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=61746&postdays=0&postorder=asc&start=374

V0.16 has the following features:
- cache support for the NVRAM page
- print support for every page
- weekly backup support
- many bugs fixed
- ...


I am searching for people who are able to translate mypage-english.js to the other supported languages by dd-wrt.

WARNING: Due to the embedded language support. The javascript and ASP files must reside in /tmp/www.
Make a persistent symbolic link, e.g. ln -s /opt/www /tmp/www, otherwise you will never see a decent text on your screen.


Here the file- and caption names of my pages:

mypage1.sh=Host
mypage2.sh=Wireless
mypage3.sh=Storage
mypage4.sh=Network
mypage5.sh=Filter
mypage6.sh=Kernel
mypage7.sh=NVRAM
mypage8.sh=OPT
mypage9.sh=Procs
mypage10.sh=Ports
mypage11.sh=Logs
mypage12.sh=Traffic


Find attached the files that I changed/added and newbies, be careful to enable opt persistent space (jffs,cifs,mmc) and don't forget to add:

1) Set the nvram variable with nvram set mypage_scripts="/opt/www/mypage1.sh /opt/www/mypage2.sh /opt/www/mypage3.sh /opt/www/mypage4.sh /opt/www/mypage5.sh /opt/www/mypage6.sh /opt/www/mypage7.sh /opt/www/mypage8.sh /opt/www/mypage9.sh /opt/www/mypage10.sh /opt/www/mypage11.sh /opt/www/mypage12.sh"

2) Commit the nvram change with nvram commit

3) Set the executable flag for all scripts and asp file by executing chmod 755 *.sh *.asp otherwise the scripts are not handled properly!

4) Execute <your_inst_dir>/setup/mypage_setup.sh to configure, show & hide pages as well

See Wiki for tutorial
See mypage.log for version history

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots


Last edited by gi-minni on Fri Jan 29, 2010 18:14; edited 56 times in total
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Dec 20, 2009 18:09    Post subject: Reply with quote
@gi-minni

Do you have any screen shots of the output of the scripts?

_________________
The New Me
gi-minni
DD-WRT User


Joined: 06 Dec 2009
Posts: 128
Location: GMT+1

PostPosted: Sun Dec 20, 2009 18:43    Post subject: Reply with quote
DHC_DarkShadow wrote:
@gi-minni

Do you have any screen shots of the output of the scripts?


Yes, look at my attachments Wink

_________________
Regards,
gi-minni

Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Dec 20, 2009 20:09    Post subject: Reply with quote
I see on page 4 "routing tables" and "Domain name server" in your shots, the code isn't in the pages. What was the code you used?
_________________
The New Me
Goto page Previous  1, 2, 3, 4, 5, 6 ... 24, 25, 26  Next Display posts from previous:    Page 5 of 26
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum