From: Nathaniel Roach Date: Tue, 2 Dec 2014 08:53:39 +0000 (+0800) Subject: package/network-manager: Enable service under systemd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb719a907a6e2ac2d4fa03a4874a16f9ed989622;p=buildroot.git package/network-manager: Enable service under systemd 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 Signed-off-by: Thomas Petazzoni --- diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk index 9770cae94a..3f6512c299 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))