[1/1] package/network-manager: enable NetworkManager-wait-online.service
diff mbox series

Message ID 20191031201121.41606-1-james.hilliard1@gmail.com
State New
Headers show
Series
  • [1/1] package/network-manager: enable NetworkManager-wait-online.service
Related show

Commit Message

James Hilliard Oct. 31, 2019, 8:11 p.m. UTC
This is normally enabled by systemctl preset-all.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/network-manager/network-manager.mk | 5 +++++
 1 file changed, 5 insertions(+)

Patch
diff mbox series

diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
index 6412d3a241..6f82cd4ea4 100644
--- a/package/network-manager/network-manager.mk
+++ b/package/network-manager/network-manager.mk
@@ -90,6 +90,8 @@  endef
 define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
 	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
 
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/network-online.target.wants
+
 	ln -sf /usr/lib/systemd/system/NetworkManager.service \
 		$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
 
@@ -98,6 +100,9 @@  define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
 
 	ln -sf /usr/lib/systemd/system/NetworkManager-dispatcher.service \
 		$(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
+
+	ln -sf /usr/lib/systemd/system/NetworkManager-wait-online.service \
+		$(TARGET_DIR)/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
 endef
 
 $(eval $(autotools-package))