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

Index: NetworkManager-1.4.0/data/NetworkManager.service.in
===================================================================
--- NetworkManager-1.4.0.orig/data/NetworkManager.service.in
+++ NetworkManager-1.4.0/data/NetworkManager.service.in
@@ -1,7 +1,7 @@
 [Unit]
 Description=Network Manager
 Documentation=man:NetworkManager(8)
-Wants=network.target
+Wants=remote-fs.target network.target
 After=network-pre.target dbus.service
 Before=network.target @DISTRO_NETWORK_SERVICE@
 
@@ -20,6 +20,6 @@ ProtectHome=read-only
 
 [Install]
 WantedBy=multi-user.target
-Alias=dbus-org.freedesktop.NetworkManager.service
+Alias=network.service
 Also=NetworkManager-dispatcher.service
 
Index: NetworkManager-1.4.0/data/NetworkManager-wait-online.service.in
===================================================================
--- NetworkManager-1.4.0.orig/data/NetworkManager-wait-online.service.in
+++ NetworkManager-1.4.0/data/NetworkManager-wait-online.service.in
@@ -7,7 +7,9 @@ Before=network-online.target
 
 [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"
 RemainAfterExit=yes
 
 [Install]