Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd
@ 2014-12-02  8:53 Nathaniel Roach
  2014-12-07 22:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Nathaniel Roach @ 2014-12-02  8:53 UTC (permalink / raw)
  To: buildroot

Previously NetworkManager had to be enabled and started on the
first boot manually or by a script.

Add install define with the commands to setup the required
service files for automatic start.

Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
---
Changes v1 -> v2
  - Corrected the symlinks so they point to the correct files,
	ensuring the dispatcher service works

 package/network-manager/network-manager.mk | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
index 9770cae..3f6512c 100644
--- a/package/network-manager/network-manager.mk
+++ b/package/network-manager/network-manager.mk
@@ -72,4 +72,17 @@ define NETWORK_MANAGER_INSTALL_INIT_SYSV
 	$(INSTALL) -m 0755 -D package/network-manager/S45network-manager $(TARGET_DIR)/etc/init.d/S45network-manager
 endef
 
+define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+
+	ln -sf /usr/lib/systemd/system/NetworkManager.service \
+		$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
+
+	ln -sf /usr/lib/systemd/system/NetworkManager.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/NetworkManager.service
+
+	ln -sf /usr/lib/systemd/system/NetworkManager-dispatcher.service \
+		$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
+endef
+
 $(eval $(autotools-package))
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd
  2014-12-02  8:53 [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd Nathaniel Roach
@ 2014-12-07 22:43 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-12-07 22:43 UTC (permalink / raw)
  To: buildroot

Dear Nathaniel Roach,

On Tue,  2 Dec 2014 16:53:39 +0800, Nathaniel Roach wrote:
> Previously NetworkManager had to be enabled and started on the
> first boot manually or by a script.
> 
> Add install define with the commands to setup the required
> service files for automatic start.
> 
> Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
> ---
> Changes v1 -> v2
>   - Corrected the symlinks so they point to the correct files,
> 	ensuring the dispatcher service works

Thanks, applied. It would be good if some systemd person such as Eric
Le Bihan could have a look.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-07 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02  8:53 [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd Nathaniel Roach
2014-12-07 22:43 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox