Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from sprunge.us to ix.io for debug stuff upload #95

Merged
merged 1 commit into from
Jan 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package/root/usr/local/sbin/rock64_diagnostics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ UploadSupportLogs() {
[[ -n ${VERIFY} ]] && (echo -e "Running file integrity checks... " ; VerifyFiles >> ${Log})

#check network connection
fping sprunge.us | grep -q alive || \
fping ix.io | grep -q alive || \
(echo "Network/firewall problem detected. Please fix this or upload ${Log} manually." >&2 ; exit 1)

echo -ne "\nIP obfuscated log uploaded to \c"
# obfuscate IPv4 addresses somehow but not too much
cat ${Log} | \
sed -E 's/([0-9]{1,3}\.)([0-9]{1,3}\.)([0-9]{1,3}\.)([0-9]{1,3})/XXX.XXX.\3\4/g' \
| curl -F 'sprunge=<-' http://sprunge.us
| curl -F 'f:1=<-' http://ix.io

echo -e "Please post the above URL on the forum where you've been asked for it."
} # UploadSupportLogs
Expand Down