Blame 0001-network-do-not-depend-on-ifcfg.patch

Harald Hoyer fe48c9
From f34e1d6b0ecf907066b6083e70d5eac84c2ba2f5 Mon Sep 17 00:00:00 2001
Harald Hoyer fe48c9
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer fe48c9
Date: Tue, 20 Aug 2013 15:09:33 +0200
Harald Hoyer fe48c9
Subject: [PATCH] network: do not depend on ifcfg
Harald Hoyer fe48c9
Harald Hoyer fe48c9
rather let ifcfg return 0 if /etc/sysconfig/network-scripts exists
Harald Hoyer fe48c9
---
Harald Hoyer fe48c9
 modules.d/40network/module-setup.sh | 1 -
Harald Hoyer fe48c9
 modules.d/45ifcfg/module-setup.sh   | 1 +
Harald Hoyer fe48c9
 2 files changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe48c9
Harald Hoyer fe48c9
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
Harald Hoyer fe48c9
index a5f635d..464e0cb 100755
Harald Hoyer fe48c9
--- a/modules.d/40network/module-setup.sh
Harald Hoyer fe48c9
+++ b/modules.d/40network/module-setup.sh
Harald Hoyer fe48c9
@@ -16,7 +16,6 @@ check() {
Harald Hoyer fe48c9
 }
Harald Hoyer fe48c9
 
Harald Hoyer fe48c9
 depends() {
Harald Hoyer fe48c9
-    [ -d /etc/sysconfig/network-scripts/ ] && echo ifcfg
Harald Hoyer fe48c9
     return 0
Harald Hoyer fe48c9
 }
Harald Hoyer fe48c9
 
Harald Hoyer fe48c9
diff --git a/modules.d/45ifcfg/module-setup.sh b/modules.d/45ifcfg/module-setup.sh
Harald Hoyer fe48c9
index 3cd0c48..ce53e5e 100755
Harald Hoyer fe48c9
--- a/modules.d/45ifcfg/module-setup.sh
Harald Hoyer fe48c9
+++ b/modules.d/45ifcfg/module-setup.sh
Harald Hoyer fe48c9
@@ -3,6 +3,7 @@
Harald Hoyer fe48c9
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer fe48c9
 
Harald Hoyer fe48c9
 check() {
Harald Hoyer fe48c9
+    [[ -d /etc/sysconfig/network-scripts ]] && return 0
Harald Hoyer fe48c9
     return 255
Harald Hoyer fe48c9
 }
Harald Hoyer fe48c9