dom0/pm-utils: start NM through systemctl after resume - when available (#404)
When using SystemD, NetworkManager is started directly, so use this way. /etc/init.d/qubes_core_netvm doesn't exists in such system... Even when existed - it was already started and SystemD doesn't allow to start it again (unlike upstart/sysvinit).
This commit is contained in:
parent
bfbd129a11
commit
17492f0fbf
@ -25,7 +25,7 @@ suspend_net()
|
||||
resume_net()
|
||||
{
|
||||
for VM in `get_running_netvms`; do
|
||||
qvm-run -u root --pass_io $VM "modprobe ehci_hcd; modprobe uhci_hcd; service qubes_core_netvm start"
|
||||
qvm-run -u root --pass_io $VM "modprobe ehci_hcd; modprobe uhci_hcd; [ -x /bin/systemctl ] && systemctl start NetworkManager.service || service qubes_core_netvm start"
|
||||
done
|
||||
# Ignore exit status from netvm...
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user