about summary refs log tree commit diff
path: root/debian/patches/systemd-Don-t-enable-NetworkManager-wait-online.serv.patch
blob: 53018432a42ebee7c44a66ddf31b281236432298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Michael Biebl <biebl@debian.org>
Date: Sun, 29 Mar 2015 22:58:43 +0200
Subject: systemd: Don't enable NetworkManager-wait-online.service statically

Instead we are going to hook up the service in network-online.target
dynamically via

[Install]
WantedBy=network-online.target

This way the user can easily disable the service.
---
 Makefile.am | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1b33525..51d8bf7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3310,12 +3310,6 @@ endif
 data/NetworkManager-dispatcher.service: $(srcdir)/data/NetworkManager-dispatcher.service.in
 	$(AM_V_GEN) $(data_edit) $< >$@
 
-install-exec-local-data:
-	install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
-	ln -sf $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
-
-install_exec_local += install-exec-local-data
-
 endif
 
 examples_DATA += data/server.conf