Prevent promptWifiOn() needing to be called twice and refactor OTA update fetch/version check

This commit is contained in:
Michael Hall
2014-08-26 20:21:18 +01:00
parent afb591a552
commit 4cc9cf85e4
2 changed files with 32 additions and 27 deletions

View File

@@ -23,6 +23,7 @@ local function koboEnableWifi(toggle)
local path = "/etc/wpa_supplicant/wpa_supplicant.conf"
os.execute("insmod /drivers/ntx508/wifi/sdio_wifi_pwr.ko 2>/dev/null")
os.execute("insmod /drivers/ntx508/wifi/dhd.ko")
os.execute("sleep 1")
os.execute("ifconfig eth0 up")
os.execute("wlarm_le -i eth0 up")
os.execute("wpa_supplicant -s -i eth0 -c "..path.." -C /var/run/wpa_supplicant -B")