Exemplo n.º 1
0
def is_bt_up():
    if connman.is_technology_available('bluetooth') == False:
        journallog('No bluetooth hardware available.')
        #exit()
        return False
    if connman.is_technology_enabled('bluetooth') == False:
        journallog('Bluetooth is disabled.')
        #exit()
        return False
    return True
Exemplo n.º 2
0
def is_bluetooth_enabled():
    connman_status = connman.is_technology_enabled('bluetooth')
    service_status = osmc_systemd.is_service_running(BLUETOOTH_SERVICE)
    adapterFound = False
    if connman_status and service_status:
        try:
            bluetooth.get_adapter()
            adapterFound = True
        except:  #  catch issue where connman reports BT but Bluez can't find an adapter
            adapterFound = False
    return connman_status and service_status and adapterFound
Exemplo n.º 3
0
def is_bluetooth_enabled():
    connman_status = connman.is_technology_enabled('bluetooth')
    service_status = osmc_systemd.is_service_running(BLUETOOTH_SERVICE)
    adapterFound = False
    if connman_status and service_status:
        try:
            bluetooth.get_adapter()
            adapterFound = True
        except: #  catch issue where connman reports BT but Bluez can't find an adapter
            adapterFound = False
    return connman_status and service_status and adapterFound
Exemplo n.º 4
0
def is_bluetooth_enabled():
    connman_status = connman.is_technology_enabled("bluetooth")
    service_status = systemd.is_service_running(BLUETOOTH_SERVICE)
    return connman_status and service_status
Exemplo n.º 5
0
def is_bluetooth_enabled():
    connman_status = connman.is_technology_enabled('bluetooth')
    service_status = systemd.is_service_running(BLUETOOTH_SERVICE)
    return connman_status and service_status
Exemplo n.º 6
0
def is_ethernet_enabled():
    return connman.is_technology_enabled(
        'ethernet') or not get_nfs_ip_cmdline_value() == None
Exemplo n.º 7
0
def is_wifi_enabled():
    try:
        return connman.is_technology_enabled('wifi')
    except:
        return False
Exemplo n.º 8
0
def is_ethernet_enabled():
    return connman.is_technology_enabled('ethernet')
Exemplo n.º 9
0
def is_wifi_enabled():
    return connman.is_technology_enabled('wifi')
Exemplo n.º 10
0
def is_ethernet_enabled():
    return connman.is_technology_enabled('ethernet') or not get_nfs_ip_cmdline_value() == None
Exemplo n.º 11
0
def is_wifi_enabled():
    try:
        return connman.is_technology_enabled('wifi')
    except:
        return False
Exemplo n.º 12
0
def is_bluetooth_enabled():
    connman_status = connman.is_technology_enabled('bluetooth')
    return connman_status
Exemplo n.º 13
0
def is_bluetooth_enabled():
    return connman.is_technology_enabled('bluetooth')
Exemplo n.º 14
0
def is_wifi_enabled():
    return connman.is_technology_enabled('wifi')