Ejemplo n.º 1
0
def toggle_bluetooth_state(state):
    if state:
        if not osmc_systemd.is_service_running(BLUETOOTH_SERVICE):
            osmc_systemd.toggle_service(BLUETOOTH_SERVICE, state)
        connman.toggle_technology_state('bluetooth', state)
    else:
        connman.toggle_technology_state('bluetooth', state)
Ejemplo n.º 2
0
def toggle_bluetooth_state(state):
    if state:
        if not systemd.is_service_running(BLUETOOTH_SERVICE):
            systemd.toggle_service(BLUETOOTH_SERVICE, state)
        connman.toggle_technology_state("bluetooth", state)
    else:
        connman.toggle_technology_state("bluetooth", state)
Ejemplo n.º 3
0
def toggle_wifi_state(state):
    connman.toggle_technology_state('wifi', state)
Ejemplo n.º 4
0
def toggle_ethernet_state(state):
    connman.toggle_technology_state('ethernet', state)
Ejemplo n.º 5
0
def toggle_ethernet_state(state):
    connman.toggle_technology_state('ethernet', state)
Ejemplo n.º 6
0
def toggle_wifi_state(state):
    connman.toggle_technology_state('wifi', state)
Ejemplo n.º 7
0
def toggle_bluetooth_state(state):
    connman.toggle_technology_state('bluetooth', state)
Ejemplo n.º 8
0
def toggle_wifi_state(state):
    connman.toggle_technology_state("wifi", state)
Ejemplo n.º 9
0
def toggle_bluetooth_state(state):
    connman.toggle_technology_state('bluetooth', state)
    systemd.toggle_service('bluetooth.service', state)