From 27f34fe0b3fdbf568526cdac2f7fb2caa66d8403 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 6 Nov 2012 23:17:56 +0000 Subject: Add some output for startstop actions that have no output --- awall-model.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'awall-model.lua') diff --git a/awall-model.lua b/awall-model.lua index 7e79813..4cf52aa 100644 --- a/awall-model.lua +++ b/awall-model.lua @@ -105,6 +105,9 @@ function startstop_service(self, startstop, action) end local f = io.popen(cmd) startstop.descr = f:read("*a") + if startstop.descr == "" then + startstop.descr = "Success" + end f:close() end return startstop -- cgit v1.2.3