Skip to content
Snippets Groups Projects
Commit 886f1cb8 authored by Helge Jung's avatar Helge Jung
Browse files

Merge branch 'master' into 'master'

Master

offline capabilty for ffpb-debug log file storing and sending them afterwards. should be triggered via conjob
parents 41e6b9ad 87e53771
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,9 @@ else
echo "Report number: "
echo $code
else
echo "Failed to send report :("
echo "Failed to send report :( but storing the file and sending it later \o/"
mkdir -p /var/cache/ff/debug
gzip -c "$tf" > /var/cache/ff/debug/stored.ff-debug.gz
fi
#TODO: rm "$tf"
fi
#!/bin/sh
#
# Stefan Kloepping <northalpha@c3pb.de>
# -- Do 29 Mai 21:21:55 2014
#
stored_debug_file='/var/cache/ff/debug/stored.ff-debug.gz'
#if file is not present, there is nothing to do
if [ ! -f "{$stored_debug_file}" ];then
exit 0
fi
#send stored debug data to server
code=$(nc debugreport.paderborn.freifunk.net 1337 < "${stored_debug_file}")
if [ $? = 0 ]; then
echo "Report number: ${code}" > /var/cache/ff/debug/lastreport.code
rm -f -- "${stored_debug_file}"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment