From 4dfd4b7e8a560729ba723c2fa8d74275f128a0a6 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 31 Dec 2010 11:53:21 +0100 Subject: warn user networking needs to work first --- src/aif-report-issues.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/aif-report-issues.sh') diff --git a/src/aif-report-issues.sh b/src/aif-report-issues.sh index 18c91b2..5ed18f4 100755 --- a/src/aif-report-issues.sh +++ b/src/aif-report-issues.sh @@ -11,6 +11,16 @@ These are the files in question: EOF ls -lh $RUNTIME_DIR/* 2>/dev/null ls -lh $LOG_DIR/* 2>/dev/null +if ! ping -c 1 sprunge.us >/dev/null +then + msg="Please setup your networking using one of +* dhcpcd eth0 # or whatever your interface is +* aif -p partial-configure-network + +If your networking works fine and you think sprunge.us is down, please upload the files to another pastebin" + show_warning "Connection error" "Cannot ping sprunge.us (pastebin server). $msg" + die_error "cannot reach pastebin" +fi report="Uploaded data:" if ask_yesno "Send these files?" then -- cgit v1.2.3-54-g00ecf