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
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
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
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
def is_ethernet_enabled(): return connman.is_technology_enabled( 'ethernet') or not get_nfs_ip_cmdline_value() == None
def is_wifi_enabled(): try: return connman.is_technology_enabled('wifi') except: return False
def is_ethernet_enabled(): return connman.is_technology_enabled('ethernet')
def is_wifi_enabled(): return connman.is_technology_enabled('wifi')
def is_ethernet_enabled(): return connman.is_technology_enabled('ethernet') or not get_nfs_ip_cmdline_value() == None
def is_bluetooth_enabled(): connman_status = connman.is_technology_enabled('bluetooth') return connman_status
def is_bluetooth_enabled(): return connman.is_technology_enabled('bluetooth')