Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 2565d442133d17866d7a0458852920c6 > files > 71

dracut-005-5.fc13.src.rpm

From 872c785b8e4786584767f4c73fd5c0e16d699228 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 10 Jun 2010 13:52:31 +0200
Subject: [PATCH 071/133] network: depend on ifcfg, if /etc/sysconfig/network-scripts exist

---
 modules.d/40network/check |    8 ++++++++
 modules.d/45ifcfg/check   |    4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/modules.d/40network/check b/modules.d/40network/check
index e5cd87e..48b7f12 100755
--- a/modules.d/40network/check
+++ b/modules.d/40network/check
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [[ $1 = -d ]]; then
+  [ -d /etc/sysconfig/network-scripts/ ] && echo ifcfg
+  exit 0
+fi
+
 . $dracutfunctions
 
 for program in ip arping; do 
@@ -15,5 +20,8 @@ for program in dhclient brctl; do
     dwarning "Could not find program \"$program\" it might be required by network." 
   fi
 done
+
+
+
 exit 255
 
diff --git a/modules.d/45ifcfg/check b/modules.d/45ifcfg/check
index 6ebc8d4..b8e40d9 100755
--- a/modules.d/45ifcfg/check
+++ b/modules.d/45ifcfg/check
@@ -1,6 +1,6 @@
 #!/bin/sh
-[ -d /etc/sysconfig/network-scripts/ ] || exit 1
 
-[[ $1 = -d ]] && echo network
+# ifcfg is required by network
+#[[ $1 = -d ]] && echo network
 
 exit 255
-- 
1.7.3