From e7db73a09b356cbc08072720f8420941ac823ac1 Mon Sep 17 00:00:00 2001
From: peteruithoven <peter@peteruithoven.nl>
Date: Wed, 2 Oct 2013 14:41:15 +0200
Subject: [PATCH] signing returns success boolean

---
 src/network/signin.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/network/signin.lua b/src/network/signin.lua
index c698465..9c7e71e 100644
--- a/src/network/signin.lua
+++ b/src/network/signin.lua
@@ -15,7 +15,7 @@ function M.signin()
 	local localip = wifi.getLocalIP();
 	if localip == nil then
 		log:error("signin failed no local ip found")
-		return
+		return false
 	end
 	
 	local wifiboxid = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
@@ -24,7 +24,7 @@ function M.signin()
 	local output = utils.captureCommandOutput(cmd);
 	log:info("signin: "..output)
 	
-	return 0
+	return string.len(output) > 0
 end
 
 return M
\ No newline at end of file