luci-base: add luci.util.ubus()
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 09:52:53 +0000 (10:52 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 15 Jan 2015 10:03:31 +0000 (11:03 +0100)
commiteb8560061ab2aed5c0f2ce2ca9fa0fe28fa89af4
treedeb2b60a23b50a5d96097adf478816e597431be4
parent00da2bbbd23bc3caefb3959e2c14d6f976154f8a
luci-base: add luci.util.ubus()

Add luci.util.ubus() convenience wrapper which establishes a connection on
the first call.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/util.lua