summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-minidlna/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-minidlna/luasrc/controller')
-rw-r--r--applications/luci-minidlna/luasrc/controller/minidlna.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/applications/luci-minidlna/luasrc/controller/minidlna.lua b/applications/luci-minidlna/luasrc/controller/minidlna.lua
index c775bdd241..5b9d62ef1f 100644
--- a/applications/luci-minidlna/luasrc/controller/minidlna.lua
+++ b/applications/luci-minidlna/luasrc/controller/minidlna.lua
@@ -30,15 +30,15 @@ end
function minidlna_status()
local sys = require "luci.sys"
- local uci = require "luci.model.uci".cursor()
- local port = tonumber(uci:get_first("minidlna", "minidlna", "port"))
+ local uci = require "luci.model.uci".cursor()
+ local port = tonumber(uci:get_first("minidlna", "minidlna", "port"))
- local status = {
+ local status = {
running = (sys.call("pidof minidlna >/dev/null") == 0),
- audio = 0,
- video = 0,
- image = 0
- }
+ audio = 0,
+ video = 0,
+ image = 0
+ }
if status.running then
local fd = sys.httpget("http://127.0.0.1:%d/" % (port or 8200), true)