Wire-Py/start_wg.py

13 lines
281 B
Python
Raw Permalink Normal View History

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