diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-11-06 23:17:56 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-11-06 23:17:56 +0000 |
commit | 27f34fe0b3fdbf568526cdac2f7fb2caa66d8403 (patch) | |
tree | 98ccff1c37a3e2cae4efa7dcb111e6578ab82f77 | |
parent | 7e68058a731feeb17dd6a609acb26bb68ba06ff8 (diff) | |
download | acf-awall-27f34fe0b3fdbf568526cdac2f7fb2caa66d8403.tar.bz2 acf-awall-27f34fe0b3fdbf568526cdac2f7fb2caa66d8403.tar.xz |
Add some output for startstop actions that have no output
-rw-r--r-- | awall-model.lua | 3 |
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 |