How to change status page

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change status page

Roadrunnere42
Hans

I have found a bug in version 8 of fw_upgrade script but before i release a fix,is there a way to add the script version  to the status page as you did for the hotfix's

Firmware Version v1.51 SP1 + Hotfix Mar 9

Firmware Version v1.51 SP1 + Hotfix Mar 9  + Fw_upgrade version ?



roadrunnere42
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

Hans
Administrator
Roadrunnere42 wrote
I have found a bug in version 8 of fw_upgrade script but before i release a fix,is there a way to add the script version  to the status page as you did for the hotfix's

Firmware Version v1.51 SP1 + Hotfix Mar 9

Firmware Version v1.51 SP1 + Hotfix Mar 9  + Fw_upgrade version ?

That is determined by usr\lib\lua\luci\view\admin_status\index.htm:
		<tr><td width="33%"><%:Firmware Version%></td><td>v1.51 SP1
				    <%:+ Hotfix %><%=luci.sys.exec("cat /.hf_date | cut -c5-10") or "?"%></td></tr>
		<tr><td width="33%"><%:Operating Mode%></td><td>UTM <%=luci.sys.exec("cat /.shield_mode") or "unknown"%></td></tr>
		<tr><td width="33%"><%:Local Time%></td><td id="localtime">-</td></tr>
		<tr><td width="33%"><%:IPS Last Updated%></td><td><%=luci.sys.exec("ls -alst /etc/snort/rules/snort.rules | cut -c52-58") or "?"%></td></tr>
		<tr><td width="33%"><%:Web Filter Last Updated%></td><td><%=luci.sys.exec("ls -alst /etc/itus/lists/ads | cut -c52-58") or "?"%></td></tr>
		<tr><td width="33%"><%:Shield Update Last Run%></td><td><%=luci.sys.exec("cat /.do_date | cut -c5-10") or "?"%></td></tr>

Right now IPS Last Updated, WF Last Updated and Shield Update Last Run will all reflect the same thing.
What if FW_Upgrade puts something else in .do_date - like "$version - $date" ? Not sure if it will work with " | cut -c5-10"

Using Shield Pro v1, Chaos Calmer, FW 1.51 SP1, Bridge Mode

2nd Shield as Sandbox, Chaos Calmer, FW 1.51 SP1 + hotfixes
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

breda
In reply to this post by Roadrunnere42
Hi, Roadrunnere42 do you have the updated version 8 of fw_upgrade  that fixes the bug  I have not updated yet

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

Roadrunnere42
breda

just posted fix

roadrunnere42
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

breda
Thanks Roadrunnere42 can you confirm if Hotfix 160210 is the newest one out?  I'm going to do factory reset to see I that will fix loss of internet in Bridge mode


Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

Roadrunnere42
breda

 Hotfix 160309 is the latest hotfix

roadrunnere42
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

breda
Thanks Roadrunnere42 just to confirm this is the file I should download  http://itus.accessinnov.com/Hotfix-160301-FINAL-td157.html#a384
Reply | Threaded
Open this post in threaded view
|

Re: How to change status page

Roadrunnere42
breda

 That link is correct

roadrunnere42