mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Small changes
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -161,7 +161,7 @@ class BTTether(plugins.Plugin):
|
|||||||
logging.error("[BT-Tether] Phone name not provided")
|
logging.error("[BT-Tether] Phone name not provided")
|
||||||
return
|
return
|
||||||
if not ("mac" in self.options and re.match(MAC_PTTRN, self.options["mac"])):
|
if not ("mac" in self.options and re.match(MAC_PTTRN, self.options["mac"])):
|
||||||
logging.error("[BT-Tether] Error with mac adresse")
|
logging.error("[BT-Tether] Error with mac address")
|
||||||
return
|
return
|
||||||
|
|
||||||
if not ("phone" in self.options and self.options["phone"].lower() in ["android", "ios"]):
|
if not ("phone" in self.options and self.options["phone"].lower() in ["android", "ios"]):
|
||||||
@ -274,7 +274,7 @@ class BTTether(plugins.Plugin):
|
|||||||
bluetooth = "Error while checking bluetoothctl"
|
bluetooth = "Error while checking bluetoothctl"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
device =self.nmcli(["-w", "0","device", "show", self.mac])
|
device = self.nmcli(["-w", "0","device", "show", self.mac])
|
||||||
device = device.stdout.replace('\n', '<br>')
|
device = device.stdout.replace('\n', '<br>')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
device = "Error while checking nmcli device"
|
device = "Error while checking nmcli device"
|
||||||
|
Reference in New Issue
Block a user