2024-09-07 23:52:16 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
from subprocess import check_call
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
home = Path.home()
|
2024-09-08 20:31:46 +02:00
|
|
|
path_to_file = home / '.config/wire_py/wg_py'
|
2024-09-07 23:52:16 +02:00
|
|
|
|
|
|
|
with open(path_to_file, 'r') as file:
|
|
|
|
for line in file.readlines():
|
|
|
|
a_con = line[5:]
|
|
|
|
check_call(['nmcli', 'connection', 'up', a_con])
|
2024-09-08 20:31:46 +02:00
|
|
|
file.close()
|