summaryrefslogtreecommitdiff
path: root/scripts/pingscript
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2011-03-20 10:53:32 +0100
committerChristian Franke <nobody@nowhere.ws>2011-03-20 10:53:32 +0100
commit0224daf7aea06c935cff0bb06b17692bac2d3a5e (patch)
treefed62dcdf7900b96384168d841aff3007588985e /scripts/pingscript
parent8924dc72661c9107a3ac849b07f2d444a1a2e1fc (diff)
Fix pingscript
Diffstat (limited to 'scripts/pingscript')
-rwxr-xr-xscripts/pingscript4
1 files changed, 3 insertions, 1 deletions
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