diff options
author | Christian Franke <nobody@nowhere.ws> | 2011-03-20 10:53:32 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2011-03-20 10:53:32 +0100 |
commit | 0224daf7aea06c935cff0bb06b17692bac2d3a5e (patch) | |
tree | fed62dcdf7900b96384168d841aff3007588985e /scripts/pingscript | |
parent | 8924dc72661c9107a3ac849b07f2d444a1a2e1fc (diff) |
Fix pingscript
Diffstat (limited to 'scripts/pingscript')
-rwxr-xr-x | scripts/pingscript | 4 |
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 |