Skip to content
Snippets Groups Projects
Commit 87e53771 authored by Stefan Kloepping's avatar Stefan Kloepping
Browse files

add tool to send stored report


  this script is intended to be run by a cronjob in $timeinterval and will
  automagically remove the report if send is succesful.

Signed-off-by: default avatarStefan Kloepping <nothalpha@c3pb.de>
parent 2c9e7440
Branches master
No related tags found
No related merge requests found
#!/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.
Please to comment