File systemd-network-config.patch of Package NetworkManager.10113

Index: NetworkManager-1.0.12/data/NetworkManager.service.in
===================================================================
--- NetworkManager-1.0.12.orig/data/NetworkManager.service.in
+++ NetworkManager-1.0.12/data/NetworkManager.service.in
@@ -1,6 +1,6 @@
 [Unit]
 Description=Network Manager
-Wants=network.target
+Wants=remote-fs.target network.target
 After=network-pre.target dbus.service
 Before=network.target @DISTRO_NETWORK_SERVICE@
 
@@ -15,6 +15,6 @@ KillMode=process
 
 [Install]
 WantedBy=multi-user.target
-Alias=dbus-org.freedesktop.NetworkManager.service
+Alias=network.service
 Also=NetworkManager-dispatcher.service
 
Index: NetworkManager-1.0.12/data/NetworkManager-wait-online.service.in
===================================================================
--- NetworkManager-1.0.12.orig/data/NetworkManager-wait-online.service.in
+++ NetworkManager-1.0.12/data/NetworkManager-wait-online.service.in
@@ -7,7 +7,9 @@ Before=network.target network-online.tar
 
 [Service]
 Type=oneshot
-ExecStart=@bindir@/nm-online -s -q --timeout=30
+Environment=NM_ONLINE_TIMEOUT=0
+EnvironmentFile=-/etc/sysconfig/network/config
+ExecStart=/bin/bash -c "if [ ${NM_ONLINE_TIMEOUT} -gt 0 ]; then @bindir@/nm-online -s -q --timeout=${NM_ONLINE_TIMEOUT} ; else /bin/true ; fi"
 
 [Install]
 WantedBy=multi-user.target
openSUSE Build Service is sponsored by