mirror of
https://github.com/xiaorouji/openwrt-passwall2.git
synced 2025-05-01 14:39:28 +08:00
luci: fix detection of old uci on some systems
This commit is contained in:
parent
722029f756
commit
c8ed851e7a
@ -30,7 +30,7 @@ function log(...)
|
||||
end
|
||||
|
||||
function is_old_uci()
|
||||
return sys.call("grep 'require \"uci\"' /usr/lib/lua/luci/model/uci.lua >/dev/null 2>&1") == 0
|
||||
return sys.call("grep -E 'require[ \t]*\"uci\"' /usr/lib/lua/luci/model/uci.lua >/dev/null 2>&1") == 0
|
||||
end
|
||||
|
||||
function uci_save(cursor, config, commit, apply)
|
||||
|
Loading…
Reference in New Issue
Block a user