]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: do not depend on ifcfg
authorHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 13:09:33 +0000 (15:09 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 Aug 2013 13:09:33 +0000 (15:09 +0200)
rather let ifcfg return 0 if /etc/sysconfig/network-scripts exists

modules.d/40network/module-setup.sh
modules.d/45ifcfg/module-setup.sh

index a5f635d7e495f0d23c95e50d35597458539ab5f2..464e0cb95c0fb7d657558e28021dce9fd7041f72 100755 (executable)
@@ -16,7 +16,6 @@ check() {
 }
 
 depends() {
-    [ -d /etc/sysconfig/network-scripts/ ] && echo ifcfg
     return 0
 }
 
index 3cd0c48505b530afc3e06b70c091a43978fc1476..ce53e5ed508918a258c0e6ac0168bcaf1660ead1 100755 (executable)
@@ -3,6 +3,7 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 check() {
+    [[ -d /etc/sysconfig/network-scripts ]] && return 0
     return 255
 }