Added cgi-bin scripts to refresh_sd and (not yet finished) delete files.
This commit is contained in:
21
.wifisd/cgi-bin/wifi_delete
Normal file
21
.wifisd/cgi-bin/wifi_delete
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
FILE="/mnt/sd/${QUERY_STRING}"
|
||||
|
||||
if [ -f "$FILE" ]; then
|
||||
#rm -f ${FILE}
|
||||
#sync
|
||||
#refresh_sd
|
||||
echo "Status: 200 OK"
|
||||
echo "Content-Type: text/plain"
|
||||
echo ""
|
||||
echo "File to delete: $FILE"
|
||||
echo "File exists!"
|
||||
|
||||
else
|
||||
echo "Status: 404 Not Found"
|
||||
echo "Content-Type: text/plain"
|
||||
echo ""
|
||||
echo "File $FILE not found!"
|
||||
fi
|
||||
|
||||
env
|
Reference in New Issue
Block a user