Skip to content

Commit

Permalink
[fix, Kobo] Add missing parentheses (#5198)
Browse files Browse the repository at this point in the history
Prevents a crash when the WIFI_MODULE environment variable is not
defined.
  • Loading branch information
jetomit authored and Frenzie committed Aug 12, 2019
1 parent 53b77e3 commit 20493ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/device/kobo/device.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 20493ee

Please sign in to comment.