mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
gateway switch bug fix
This commit is contained in:
parent
c1228d321b
commit
f3776f1c51
@ -213,18 +213,18 @@ class GateWayPage(Page):
|
||||
parts[3] = str(tmp)
|
||||
ipaddress = ".".join(parts)
|
||||
os.system("sudo route add default gw "+ipaddress)
|
||||
return true
|
||||
return True
|
||||
else:
|
||||
if is_wifi_connected_now():
|
||||
os.system("sudo dhclient wlan0")
|
||||
return true
|
||||
return True
|
||||
else:
|
||||
self._Screen._MsgBox.SetText("Wi-Fi is not connected")
|
||||
self._Screen._MsgBox.Draw()
|
||||
self._Screen.SwapAndShow()
|
||||
return false
|
||||
return False
|
||||
|
||||
return false
|
||||
return False
|
||||
|
||||
|
||||
def OnLoadCb(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user