コード例 #1
0
print("getHaveAVJACK%s<" %boxbranding.getHaveAVJACK())
print("getHaveSCART%s<" %boxbranding.getHaveSCART())
print("getHaveSCARTYUV%s<" %boxbranding.getHaveSCARTYUV())
print("getHaveDVI%s<" %boxbranding.getHaveDVI())
print("getHaveMiniTV%s<" %boxbranding.getHaveMiniTV())
print("getHaveHDMIinHD%s<" %boxbranding.getHaveHDMIinHD())
print("getHaveHDMIinFHD%s<" %boxbranding.getHaveHDMIinFHD())
print("getHaveWOL%s<" %boxbranding.getHaveWOL())
print("getHaveWWOL%s<" %boxbranding.getHaveWWOL())
print("getHaveTranscoding1%s<" %boxbranding.getHaveTranscoding1())
print("getHaveTranscoding2%s<" %boxbranding.getHaveTranscoding2())
print("getHaveCI%s<" %boxbranding.getHaveCI())
print("getOpenFIXVersion=%s<" %boxbranding.getOpenFIXVersion())
print("getOpenFIXRevision=%s<" %boxbranding.getOpenFIXRevision())
print("getDeveloperName=%s<" %boxbranding.getDeveloperName())
print("getBoxBrand=%s<" %boxbranding.getBoxBrand())
print("getMachineMtdBoot=%s<" %boxbranding.getMachineMtdBoot())
print("getForceMode=%s<" %boxbranding.getForceMode())
print("getImageFPU=%s<" %boxbranding.getImageFPU())
print("getHaveSmallFlash=%s<" %boxbranding.getHaveSmallFlash())
print("getHaveMiddleFlash=%s<" %boxbranding.getHaveMiddleFlash())
print("getHaveTranscoding=%s<" %boxbranding.getHaveTranscoding())
print("getHaveMultiTranscoding=%s<" %boxbranding.getHaveMultiTranscoding())
print("getHaveMultiLib=%s<" %boxbranding.getHaveMultiLib())
print("getHaveSVIDEO=%s<" %boxbranding.getHaveSVIDEO())
print("getBlindscanBin=%s<" %boxbranding.getBlindscanBin())
print("getSoCFamily=%s<" %boxbranding.getSoCFamily())
print("getHaveVFDSymbol=%s<" %boxbranding.getHaveVFDSymbol())
print("getKernelVersion=%s<" %boxbranding.getKernelVersion())
print("getRCType=%s<" %boxbranding.getRCType())
print("getRCName=%s<" %boxbranding.getRCName())
コード例 #2
0
from Tools.Directories import fileExists

from OMBManagerCommon import OMB_MAIN_DIR, OMB_DATA_DIR, OMB_UPLOAD_DIR, OMB_TMP_DIR
from OMBManagerLocale import _

from enigma import eTimer, getBoxType

import os
from os import path
import glob
import struct
from Components.Console import Console
from boxbranding import getBoxBrand, getImageDistro, getImageVersion, getImageFileSystem, getImageFolder, getMachineMtdKernel, getMachineKernelFile, getMachineMtdBoot, getMachineMtdRoot, getMachineRootFile, getMachineMKUBIFS, getMachineUBINIZE

OMB_GETBOXTYPE = getBoxType()
OMB_GETBRANDOEM = getBoxBrand()
OMB_GETIMAGEDISTRO = getImageDistro()
OMB_GETIMAGEVERSION = getImageVersion()
OMB_GETIMAGEFILESYSTEM = getImageFileSystem()  # needed
OMB_GETIMAGEFOLDER = getImageFolder()  # needed
OMB_GETMACHINEMTDKERNEL = getMachineMtdKernel()
OMB_GETMACHINEKERNELFILE = getMachineKernelFile()  # needed
OMB_GETMACHINEMTDBOOT = getMachineMtdBoot()
OMB_GETMACHINEMTDROOT = getMachineMtdRoot()
OMB_GETMACHINEROOTFILE = getMachineRootFile()  # needed
OMB_GETMACHINEMKUBIFS = getMachineMKUBIFS()
OMB_GETMACHINEUBINIZE = getMachineUBINIZE()


class OMBManagerInstall(Screen):
    skin = """
コード例 #3
0
    "pulse4kmini") and 1 or eDVBCIInterfaces.getInstance().getNumOfSlots()
SystemInfo["CommonInterfaceCIDelay"] = fileCheck("/proc/stb/tsmux/rmx_delay")
for cislot in range(0, SystemInfo["CommonInterface"]):
    SystemInfo["CI%dSupportsHighBitrates" % cislot] = fileCheck(
        "/proc/stb/tsmux/ci%d_tsclk" % cislot)
    SystemInfo["CI%dRelevantPidsRoutingSupport" % cislot] = fileCheck(
        "/proc/stb/tsmux/ci%d_relevant_pids_routing" % cislot)
SystemInfo["HasSoftcamInstalled"] = hassoftcaminstalled()
SystemInfo["NumVideoDecoders"] = getNumVideoDecoders()
SystemInfo["PIPAvailable"] = SystemInfo["NumVideoDecoders"] > 1
SystemInfo["CanMeasureFrontendInputPower"] = eDVBResourceManager.getInstance(
).canMeasureFrontendInputPower()
SystemInfo["12V_Output"] = Misc_Options.getInstance().detected_12V_output()
SystemInfo["ZapMode"] = fileCheck("/proc/stb/video/zapmode") or fileCheck(
    "/proc/stb/video/zapping_mode")
SystemInfo["ISDREAMBOX"] = getBoxBrand() in ("dreambox", )
SystemInfo["HaveTouchSensor"] = model in ("dm520", "dm525", "dm900", "dm920")
SystemInfo["NumFrontpanelLEDs"] = countFrontpanelLEDs()
SystemInfo["FrontpanelDisplay"] = fileExists("/dev/dbox/oled0") or fileExists(
    "/dev/dbox/lcd0")
SystemInfo["LCDsymbol_circle_recording"] = fileCheck(
    "/proc/stb/lcd/symbol_circle") or model in (
        "hd51", "vs1500") and fileCheck("/proc/stb/lcd/symbol_recording")
SystemInfo["LCDsymbol_timeshift"] = fileCheck("/proc/stb/lcd/symbol_timeshift")
SystemInfo["LCDshow_symbols"] = (model.startswith("et9") or model in (
    "hd51", "vs1500")) and fileCheck("/proc/stb/lcd/show_symbols")
SystemInfo["LCDsymbol_hdd"] = model in (
    "hd51", "vs1500") and fileCheck("/proc/stb/lcd/symbol_hdd")
SystemInfo["FrontpanelDisplayGrayscale"] = fileExists("/dev/dbox/oled0")
SystemInfo["DeepstandbySupport"] = HardwareInfo().get_device_name() != "dm800"
SystemInfo["Fan"] = fileCheck("/proc/stb/fp/fan")
コード例 #4
0
    if 'emmc' in OMB_GETIMAGEFILESYSTEM:
        if BOX_NAME in ("hd51", "vs1500", "e4hd", "lunix3-4k"):
            OMB_GETMACHINEKERNELFILE = "kernel1.bin"
            if BOX_NAME == "lunix3-4k":
                OMB_GETMACHINEKERNELFILE = "oe_kernel.bin"
            OMB_GETIMAGEFILESYSTEM = "tar.bz2"
            OMB_GETMACHINEROOTFILE = "rootfs.tar.bz2"

    try:
        from boxbranding import getBrandOEM
        BOX_MODEL = getBrandOEM()
        OMB_GETBRANDOEM = getBrandOEM()
    except:
        try:
            from boxbranding import getBoxBrand
            BOX_MODEL = getBoxBrand()
            OMB_GETBRANDOEM = getBoxBrand()
        except:
            pass
else:
    try:
        from enigma import getBoxType
        BOX_NAME = getBoxType()
        if BOX_NAME[0:2] == "dm":
            BOX_MODEL = "dreambox"
    except:
        if os.path.exists('/etc/hostname'):
            f = open("/etc/hostname", "r")
            BOX_NAME = f.read().strip()
            f.close()
            if BOX_NAME[0:2] == "dm":