summaryrefslogtreecommitdiffstats
path: root/awall-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-11-06 23:17:56 +0000
committerTed Trask <ttrask01@yahoo.com>2012-11-06 23:17:56 +0000
commit27f34fe0b3fdbf568526cdac2f7fb2caa66d8403 (patch)
tree98ccff1c37a3e2cae4efa7dcb111e6578ab82f77 /awall-model.lua
parent7e68058a731feeb17dd6a609acb26bb68ba06ff8 (diff)
downloadacf-awall-27f34fe0b3fdbf568526cdac2f7fb2caa66d8403.tar.bz2
acf-awall-27f34fe0b3fdbf568526cdac2f7fb2caa66d8403.tar.xz
Add some output for startstop actions that have no output
Diffstat (limited to 'awall-model.lua')
-rw-r--r--awall-model.lua3
1 files changed, 3 insertions, 0 deletions
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