package/network-manager: adapt to systemctl preset-all
authorJérémy Rosen <jeremy.rosen@smile.fr>
Mon, 16 Dec 2019 10:30:47 +0000 (11:30 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 18 Dec 2019 17:33:22 +0000 (18:33 +0100)
NM has three services
* NetworkManger.service : the main daemon
* NetworkManger-dispatcher.service : a daemon handling network callbacks
* NetworkManager-wait-online.service : sync of other services with network-online

Only the first two were activated. We now also enable
wait-online. Not enabling it was probably a bug.

Note that buildroot adds an alias dbus-org.freedesktop.NetworkManager
Adding an alias that is not known upstream is not clean,
but I left it for backward compatibility

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/network-manager/network-manager.mk

index 7de2c220fed1d9a7a43768811ae265e030db60f7..56b768cdefc5eb9a5093a05f1b90df721726ad49 100644 (file)
@@ -88,16 +88,9 @@ define NETWORK_MANAGER_INSTALL_INIT_SYSV
 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))