My_Page

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6 ... 23, 24, 25  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: 10143

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: 1250
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)



Build.png
 Description:
 Filesize:  2.99 KB
 Viewed:  22491 Time(s)

Build.png



_________________
(12/24/13) mega - 23204
4x WRT54G-TM

(12/24/13) std - 23204
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(07/24/13) micro - 22118
1x WG602v3

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: 1250
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)

_________________
(12/24/13) mega - 23204
4x WRT54G-TM

(12/24/13) std - 23204
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(07/24/13) micro - 22118
1x WG602v3

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: 12854
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.

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



mypage-shots-v0.16-20100129-00520.tgz
 Description:
HTML Shots - v0.16-20100129-00520
- MD5:095ed44c69c49520ec6730f01a453dda
- New Mypage screenshots

Download
 Filename:  mypage-shots-v0.16-20100129-00520.tgz
 Filesize:  1.39 MB
 Downloaded:  4673 Time(s)


mypage-files-v0.16-20100129-00520.tgz
 Description:
HTML Files - v0.16-20100129-00520
- MD5:65664e7346601ff07a66bc31634e99ea
- New Mypage scripts
- See mypage.log for version history

Download
 Filename:  mypage-files-v0.16-20100129-00520.tgz
 Filesize:  194.13 KB
 Downloaded:  4339 Time(s)


mypage-setup-v0.13-20100113-00323.tgz
 Description:
HTML Setup - v0.13-20100113-00323
- MD5:026e929fb6a7e7844594a84bd86ebef6
- New Mypage setup screenshots

Download
 Filename:  mypage-setup-v0.13-20100113-00323.tgz
 Filesize:  775.22 KB
 Downloaded:  3666 Time(s)


_________________
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 ... 23, 24, 25  Next Display posts from previous:    Page 5 of 25
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum