0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-11-17 02:57:56 +01:00
doodle3d-firmware/src/script/d3dapi

23 lines
534 B
Plaintext
Raw Normal View History

#!/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
2013-08-23 16:28:03 +02:00
echo "CGI invocation" >> $LOG_FILE
strace - /tmp/trace-$$.log $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 "---"