mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-18 15:15:10 +01:00
24 lines
576 B
Bash
Executable File
24 lines
576 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# NOTE: redirection to $LOG_FILE is not required anymore, it is configurable now.
|
|
# It is left in just as a precaution for a badly configured firmware invocation.
|
|
|
|
LUA=lua
|
|
SCRIPT_PATH=/usr/share/lua/wifibox
|
|
LOG_FILE=/tmp/wifibox.log
|
|
|
|
cd $SCRIPT_PATH
|
|
echo "CGI invocation" >> $LOG_FILE
|
|
#strace -o /tmp/trace-$$.log -ff $LUA ./cmdmain.lua $@ 2>> $LOG_FILE
|
|
$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 "---"
|