From 0224daf7aea06c935cff0bb06b17692bac2d3a5e Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sun, 20 Mar 2011 10:53:32 +0100 Subject: Fix pingscript --- scripts/pingscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/pingscript b/scripts/pingscript index f6671b4..80b1a74 100755 --- a/scripts/pingscript +++ b/scripts/pingscript @@ -5,8 +5,10 @@ logger -t sublab-updater starting status update insertstatus() { + local ec=$? local status - if [ $? -eq 0 ]; then + + if [ $ec -eq 0 ]; then status=online else status=offline -- cgit v1.2.1