[1/1] package/connman: enable connman-wait-online.service
diff mbox series

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

Commit Message

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

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

Patch
diff mbox series

diff --git a/package/connman/connman.mk b/package/connman/connman.mk
index 839bc7a0e2..f8466bc1cb 100644
--- a/package/connman/connman.mk
+++ b/package/connman/connman.mk
@@ -36,6 +36,9 @@  define CONNMAN_INSTALL_INIT_SYSTEMD
 	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
 	ln -fs ../../../../usr/lib/systemd/system/connman.service \
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/connman.service
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/network-online.target.wants
+	ln -fs ../../../../usr/lib/systemd/system/connman-wait-online.service \
+		$(TARGET_DIR)/etc/systemd/system/network-online.target.wants/connman-wait-online.service
 endef
 
 ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)