mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-11-17 02:57:56 +01:00
20 lines
339 B
Bash
Executable File
20 lines
339 B
Bash
Executable File
#!/bin/sh
|
|
#chmod 755 /www/cgi-bin/d3dapi
|
|
|
|
LUA=lua
|
|
SCRIPT_PATH=/usr/share/lua/wifibox
|
|
LOG_FILE=/tmp/wifibox.log
|
|
|
|
cd $SCRIPT_PATH
|
|
$LUA ./cmdmain.lua $@ 2>> $LOG_FILE
|
|
|
|
exit $?
|
|
|
|
# Code below is for debugging incoming CGI data
|
|
read -n $CONTENT_LENGTH POSTDATA
|
|
echo -e "Content-type: text/plain\r\n\r\n"
|
|
set
|
|
echo "---"
|
|
echo $POSTDATA
|
|
echo "---"
|