]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Better check if writing ifcfg files is necessary.
authorWarren Togami <wtogami@redhat.com>
Tue, 13 Oct 2009 17:20:07 +0000 (13:20 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 13 Oct 2009 17:20:07 +0000 (13:20 -0400)
modules.d/45ifcfg/check

index 0f6e457ac3c2dd3b03a4dc0d7527cd6fa93a8111..6ebc8d49e72353e48e1113f2e45167d992fca1f9 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-[ -f /etc/redhat-release ] || exit 1
+[ -d /etc/sysconfig/network-scripts/ ] || exit 1
 
 [[ $1 = -d ]] && echo network