From 20493eebc386895031f5869fbf90c970e0a833a6 Mon Sep 17 00:00:00 2001 From: jetomit Date: Mon, 12 Aug 2019 14:06:55 +0000 Subject: [PATCH] [fix, Kobo] Add missing parentheses (#5198) Prevents a crash when the WIFI_MODULE environment variable is not defined. --- frontend/device/kobo/device.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index aa78c15e5..bad7e731a 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -406,7 +406,7 @@ function Kobo:initNetworkManager(NetworkMgr) -- NOTE: Cheap-ass way of checking if WiFi seems to be enabled... -- Since the crux of the issues lies in race-y module unloading, this is perfectly fine for our usage. function NetworkMgr:isWifiOn() - return 0 == os.execute("lsmod | grep -q " .. os.getenv("WIFI_MODULE") or "sdio_wifi_pwr") + return 0 == os.execute("lsmod | grep -q " .. (os.getenv("WIFI_MODULE") or "sdio_wifi_pwr")) end end