Update unblockmusiclog.lua

This commit is contained in:
coolsnowwolf 2019-10-31 18:14:45 +08:00 committed by GitHub
parent 61964b6aa5
commit 61cfe1645c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ t = f:field(TextValue, "conf")
t.rmempty = true
t.rows = 20
function t.cfgvalue()
luci.sys.exec("cat /tmp/unblockmusic.log | grep http > /tmp/music.log")
luci.sys.exec("grep -B 1 'http' /tmp/unblockmusic.log > /tmp/music.log")
return fs.readfile(conffile) or ""
end
t.readonly="readonly"