Merge pull request #263 from cuu/gcores

Gcores
This commit is contained in:
GNU 2019-07-18 06:52:15 +08:00 committed by GitHub
commit 6f90f8d3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "Pcsx"]
path = Menu/GameShell/20_Retro Games/Pcsx
url = https://github.com/cuu/Pcsx.git

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import pygame
import validators
import commands
from UI.constants import Width,Height,ICON_TYPES
from UI.simple_name_space import SimpleNamespace
@ -117,6 +118,10 @@ class TinyCloudPage(Page):
else:
self._IP = "xxx.xxx.xxx.xxx"
hostname = commands.getstatusoutput("hostname")[1]
if hostname == "":
hostname = "clockworkpi"
labels = \
[["forssh","For ssh and scp:",self._ListLabelFontObj,self._TextColor],
["ssh_addr","ssh cpi@%s" % self._IP, self._ListFontObj,self._URLColor],
@ -130,7 +135,7 @@ class TinyCloudPage(Page):
["key_and_pass", "cpi", self._ListFontObj, self._URLColor],
["for_airplay", "Airplay:", self._ListLabelFontObj, self._TextColor],
["airplay_name","clockworkpi", self._ListFontObj, self._URLColor],
["airplay_name",hostname, self._ListFontObj, self._URLColor],
["for-usb-eth","USB-Ethernet:", self._ListLabelFontObj, self._TextColor],
["usb-eth-addr","192.168.10.1", self._ListFontObj, self._URLColor]]