mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-14 00:58:20 +00:00
updated shared.cgi to read T20 firmware ver (#232)
This commit is contained in:
parent
86bd5a85bd
commit
5ff8ad6ce6
@ -4,22 +4,21 @@ base_dir=/opt/wz_mini/
|
|||||||
base_hack_ini=/opt/wz_mini/wz_mini.conf
|
base_hack_ini=/opt/wz_mini/wz_mini.conf
|
||||||
hack_ini=$base_hack_ini
|
hack_ini=$base_hack_ini
|
||||||
www_dir=/opt/wz_mini/www/cgi-bin/
|
www_dir=/opt/wz_mini/www/cgi-bin/
|
||||||
camver=V3
|
|
||||||
|
|
||||||
if [ -f /opt/wz_mini/tmp/.T31 ]; then
|
if [ -f /opt/wz_mini/tmp/.T31 ]; then
|
||||||
camtype=T31
|
camtype=T31
|
||||||
|
camfirmware=$(tail -n1 /configs/app.ver | cut -f2 -d= )
|
||||||
elif [ -f /opt/wz_mini/tmp/.T20 ]; then
|
elif [ -f /opt/wz_mini/tmp/.T20 ]; then
|
||||||
camtype=T20
|
camtype=T20
|
||||||
|
camfirmware=$(tail -n1 /system/bin/app.ver | cut -f2 -d= )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cammodel=$(/opt/wz_mini/etc/init.d/s04model start | grep detected | cut -f1 -d ' ' )
|
cammodel=$(/opt/wz_mini/etc/init.d/s04model start | grep detected | cut -f1 -d ' ' )
|
||||||
|
|
||||||
camver="$camtype($cammodel)"
|
camver="$camtype($cammodel)"
|
||||||
|
|
||||||
camfirmware=$(tail -n1 /configs/app.ver | cut -f2 -d= )
|
|
||||||
hackver=$(cat /opt/wz_mini/usr/bin/app.ver)
|
hackver=$(cat /opt/wz_mini/usr/bin/app.ver)
|
||||||
|
|
||||||
|
|
||||||
function version_info
|
function version_info
|
||||||
{
|
{
|
||||||
echo "<div id='$1'>"
|
echo "<div id='$1'>"
|
||||||
|
Loading…
Reference in New Issue
Block a user