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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
$(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))