From 4e6b513fc7593a7f2dda5255225378b0d4fd7d04 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 28 Dec 2024 15:33:46 +0100 Subject: [PATCH] Set metric to 100 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/bt-tether.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index c0f6c378..4b35968d 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -29,7 +29,7 @@ class BTTether(plugins.Plugin): address = f'{ip}' gateway = '172.20.10.1' try: - subprocess.run(['nmcli', 'connection', 'modify', f'{phone_name}', 'ipv4.addresses', f'{address}', 'ipv4.gateway',f'{gateway}'], check=True) + subprocess.run(['nmcli', 'connection', 'modify', f'{phone_name}', 'ipv4.addresses', f'{address}', 'ipv4.gateway',f'{gateway}', 'ipv4.route-metric', '100'], check=True) subprocess.run(['nmcli', 'connection', 'reload'], check=True) subprocess.run(['systemctl', 'restart', 'NetworkManager'], check=True) except Exception as e: