luci-base: utils: Make checklib return a boolean 698/head
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Tue, 29 Mar 2016 14:18:22 +0000 (10:18 -0400)
committerDaniel Dickinson <openwrt@daniel.thecshore.com>
Fri, 8 Apr 2016 06:18:42 +0000 (02:18 -0400)
commit97f2937034d99642d79bf081d135e8fcd8e2bf3c
treee1ef890621ab3744dcfa64f02f5dbf13fb588c4e
parentc5c199bc00108c7488c3d68f4ee6a7ebb28c0b54
luci-base: utils: Make checklib return a boolean

Using tristate is counter-intuitive and probably doesn't provide a lot
of benefit so we use a boolean and treat "don't know" as false (because
it is safer than showing options that are not actually available).

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
modules/luci-base/luasrc/util.lua