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"
No more: Shield Pro v1, Chaos Calmer, FW 1.51 SP1