mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-12 16:28:20 +00:00
Update and rename SD_ROOT/wz_mini/web/cgi-bin/index.cgi to SD_ROOT/wz_mini/www/cgi-bin/index.cgi
This commit is contained in:
parent
02c7f12c2e
commit
4b50c8db37
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#we!/bin/sh
|
||||||
# This serves a rudimentary webpage based on wz_mini.conf
|
# This serves a rudimentary webpage based on wz_mini.conf
|
||||||
base_dir=/opt/wz_mini/
|
base_dir=/opt/wz_mini/
|
||||||
hack_ini=/opt/wz_mini/wz_mini.conf
|
hack_ini=/opt/wz_mini/wz_mini.conf
|
||||||
|
www_dir=/opt/wz_mini/www/cgi-bin/
|
||||||
camver=V3
|
camver=V3
|
||||||
camfirmware=$(tail -n1 /configs/app.ver | cut -f2 -d= )
|
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)
|
||||||
@ -90,7 +91,7 @@ fi
|
|||||||
|
|
||||||
function documentation_to_html
|
function documentation_to_html
|
||||||
{
|
{
|
||||||
if [[ -f "$web_dir$1.md" ]]; then
|
if [[ -f "$www_dir$1.md" ]]; then
|
||||||
printf '<div class="ii_explain"><pre>'
|
printf '<div class="ii_explain"><pre>'
|
||||||
cat $web_dir$1.md
|
cat $web_dir$1.md
|
||||||
printf '</pre></div>'
|
printf '</pre></div>'
|
Loading…
Reference in New Issue
Block a user