Reloading services after updating the configuration

This commit is contained in:
2023-10-20 17:23:37 +02:00
parent 878fa88331
commit b564f5b84b

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python
import os
import fileinput
import subprocess
from pathlib import Path
from typing import Annotated
@@ -110,6 +110,8 @@ def switch_status(turn_on):
else:
update_dhcp_conf(turn_on)
update_usb_modem(turn_on)
subprocess.run('service dhcpcd restart && service networking restart')
def update_dhcp_conf(turn_on):