From: Nathaniel Roach <nroach44@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd
Date: Tue, 2 Dec 2014 16:53:39 +0800 [thread overview]
Message-ID: <1417510419-9400-1-git-send-email-nroach44@gmail.com> (raw)
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
next reply other threads:[~2014-12-02 8:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 8:53 Nathaniel Roach [this message]
2014-12-07 22:43 ` [Buildroot] [PATCH v2] package/network-manager: Enable service under systemd Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1417510419-9400-1-git-send-email-nroach44@gmail.com \
--to=nroach44@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.