updated shared.cgi to read T20 firmware ver (#232)

This commit is contained in:
virmaior 2022-08-12 06:08:51 +09:00 committed by GitHub
parent 86bd5a85bd
commit 5ff8ad6ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,22 +4,21 @@ base_dir=/opt/wz_mini/
base_hack_ini=/opt/wz_mini/wz_mini.conf
hack_ini=$base_hack_ini
www_dir=/opt/wz_mini/www/cgi-bin/
camver=V3
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
camtype=T20
camtype=T20
camfirmware=$(tail -n1 /system/bin/app.ver | cut -f2 -d= )
fi
cammodel=$(/opt/wz_mini/etc/init.d/s04model start | grep detected | cut -f1 -d ' ' )
camver="$camtype($cammodel)"
camfirmware=$(tail -n1 /configs/app.ver | cut -f2 -d= )
hackver=$(cat /opt/wz_mini/usr/bin/app.ver)
function version_info
{
echo "<div id='$1'>"