diff options
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 3 | ||||
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 20adcdf100..f85eb52198 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -13,6 +13,7 @@ $Id$ ]]-- require("luci.model.uci") require("luci.sys") +require("luci.util") m = Map("dhcp", "DHCP") @@ -46,7 +47,7 @@ s:option(Value, "netmask", translate("netmask")).optional = true s:option(Flag, "force").optional = true -for i, line in pairs(luci.sys.execl("dnsmasq --help dhcp")) do +for i, line in pairs(luci.util.execl("dnsmasq --help dhcp")) do k, v = line:match("([^ ]+) +([^ ]+)") s:option(Value, "dhcp"..k, v).optional = true end diff --git a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua index d463157d19..de22619192 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua @@ -33,7 +33,7 @@ t:value("prism2") --[[ require("luci.sys") local c = ". /etc/functions.sh;for i in /lib/wifi/*;do . $i;done;echo $DRIVERS" -for driver in luci.sys.execl(c)[1]:gmatch("[^ ]+") do +for driver in luci.util.execl(c)[1]:gmatch("[^ ]+") do t:value(driver) end ]]-- |