[1/1] package/wpa_supplicant: enable systemd services
diff mbox series

Message ID 20191031195358.62213-1-james.hilliard1@gmail.com
State New
Headers show
Series
  • [1/1] package/wpa_supplicant: enable systemd services
Related show

Commit Message

James Hilliard Oct. 31, 2019, 7:53 p.m. UTC
These are normally enabled by systemctl preset-all.

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

Patch
diff mbox series

diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 9dcebca9bf..55769c2bbd 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -227,6 +227,17 @@  define WPA_SUPPLICANT_INSTALL_INIT_SYSTEMD
 		$(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant-nl80211@.service
 	$(INSTALL) -m 0644 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/systemd/wpa_supplicant-wired@.service \
 		$(TARGET_DIR)/usr/lib/systemd/system/wpa_supplicant-wired@.service
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+	ln -fs ../../../../usr/lib/systemd/system/wpa_supplicant.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service
+	ln -fs ../../../../usr/lib/systemd/system/wpa_supplicant@.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/wpa_supplicant@.service
+	ln -fs ../../../../usr/lib/systemd/system/wpa_supplicant-nl80211@.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/wpa_supplicant-nl80211@.service
+	ln -fs ../../../../usr/lib/systemd/system/wpa_supplicant-wired@.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/wpa_supplicant-wired@.service
+	ln -fs ../../../usr/lib/systemd/system/wpa_supplicant.service \
+		$(TARGET_DIR)/etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service
 endef
 
 $(eval $(generic-package))