]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: depend on ifcfg, if /etc/sysconfig/network-scripts exist
authorHarald Hoyer <harald@redhat.com>
Thu, 10 Jun 2010 11:52:31 +0000 (13:52 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 10 Jun 2010 11:52:31 +0000 (13:52 +0200)
modules.d/40network/check
modules.d/45ifcfg/check

index e5cd87e7be66ecca9cb2cc0492a1b2a11aed2027..48b7f123eddd88e548d47b0dc2a346b6523e9298 100755 (executable)
@@ -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
 
index 6ebc8d49e72353e48e1113f2e45167d992fca1f9..b8e40d91e3aa938a5387acbdbee3b07c096f6608 100755 (executable)
@@ -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