little fixes

This commit is contained in:
2024-09-07 23:52:16 +02:00
parent 858e9f07fe
commit 607589d44a
6 changed files with 63 additions and 50 deletions

12
start_wg.py Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/python3
from subprocess import check_call
from pathlib import Path
home = Path.home()
path_to_file = home / 'Pyapps/wire-py/wg_py'
with open(path_to_file, 'r') as file:
for line in file.readlines():
a_con = line[5:]
check_call(['nmcli', 'connection', 'up', a_con])