diff --git a/package/lean/luci-app-unblockmusic/luasrc/model/cbi/unblockmusiclog.lua b/package/lean/luci-app-unblockmusic/luasrc/model/cbi/unblockmusiclog.lua index 074c8c4a8..1be151743 100644 --- a/package/lean/luci-app-unblockmusic/luasrc/model/cbi/unblockmusiclog.lua +++ b/package/lean/luci-app-unblockmusic/luasrc/model/cbi/unblockmusiclog.lua @@ -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"