2024-09-07 23:52:16 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
from subprocess import check_call
|
2024-09-15 02:09:43 +02:00
|
|
|
from pathlib import Path
|
2024-09-07 23:52:16 +02:00
|
|
|
|
2024-09-17 20:57:11 +02:00
|
|
|
path_to_file = Path('/etc/wire_py/wg_py')
|
2024-09-15 02:09:43 +02:00
|
|
|
|
|
|
|
if Path.exists(path_to_file):
|
|
|
|
a_con = Path.read_text(path_to_file)
|
|
|
|
check_call(['nmcli', 'connection', 'up', a_con])
|
|
|
|
else:
|
|
|
|
pass
|
2024-09-10 20:06:33 +02:00
|
|
|
|