|
|
@ -11,7 +11,15 @@ local function kindleEnableWifi(toggle)
|
|
|
|
lipc_handle = lipc.init("com.github.koreader.networkmgr")
|
|
|
|
lipc_handle = lipc.init("com.github.koreader.networkmgr")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if lipc_handle then
|
|
|
|
if lipc_handle then
|
|
|
|
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", toggle)
|
|
|
|
-- Be extremely thorough... c.f., #6019
|
|
|
|
|
|
|
|
-- NOTE: I *assume* this'll also ensure we prefer WiFi over 3G/4G, which is a plus in my book...
|
|
|
|
|
|
|
|
if toggle == 1 then
|
|
|
|
|
|
|
|
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", 1)
|
|
|
|
|
|
|
|
lipc_handle:set_int_property("com.lab126.wifid", "enable", 1)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
lipc_handle:set_int_property("com.lab126.wifid", "enable", 0)
|
|
|
|
|
|
|
|
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", 0)
|
|
|
|
|
|
|
|
end
|
|
|
|
lipc_handle:close()
|
|
|
|
lipc_handle:close()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
-- No liblipclua on FW < 5.x ;)
|
|
|
|
-- No liblipclua on FW < 5.x ;)
|
|
|
|