2024-09-07 23:52:16 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
from subprocess import check_call
|
|
|
|
|
2024-09-10 20:06:33 +02:00
|
|
|
path_to_file = '/home/punix/.config/wire_py/wg_py'
|
|
|
|
|
2024-09-14 23:25:48 +02:00
|
|
|
with open(path_to_file, 'r') as file:
|
|
|
|
*_, line = file
|
|
|
|
a_con = line[5:]
|
2024-09-07 23:52:16 +02:00
|
|
|
check_call(['nmcli', 'connection', 'up', a_con])
|