Reloading services after updating the configuration
This commit is contained in:
1 parent
b564f5b84b
commit
93f4159459
1 file changed
+2
-1
@@ -111,7 +111,8 @@ def switch_status(turn_on):
|
||||
update_dhcp_conf(turn_on)
|
||||
update_usb_modem(turn_on)
|
||||
|
||||
subprocess.run('service dhcpcd restart && service networking restart')
|
||||
subprocess.run(['/usr/bin/sudo', '/usr/sbin/service', 'dhcpcd', 'restart'])
|
||||
subprocess.run(['/usr/bin/sudo', '/usr/sbin/service', 'networking', 'restart'])
|
||||
|
||||
|
||||
def update_dhcp_conf(turn_on):
|
||||
|
||||
Reference in new issue
Block a user