luci-app-flowoffload: fix running status check

This commit is contained in:
CN_SZTL 2019-08-03 00:56:25 +08:00
parent 7d9146dfde
commit 0b3e784944
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -17,7 +17,7 @@ local function is_running()
end
local function is_bbr()
return luci.sys.call("[ `cat /proc/sys/net/ipv4/tcp_congestion_control 2>/dev/null` = `uci get flowoffload.@flow[0].bbr 2>/dev/null` ] 2>/dev/null") == 0
return luci.sys.call("[ `cat /proc/sys/net/ipv4/tcp_congestion_control 2>/dev/null` = bbr ] 2>/dev/null") == 0
end
local function is_fullcone()