From: Warren Togami Date: Tue, 13 Oct 2009 17:20:07 +0000 (-0400) Subject: Better check if writing ifcfg files is necessary. X-Git-Tag: 003~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08d82be71d1f002af4efcc2c615a4bc38246e093;p=thirdparty%2Fdracut.git Better check if writing ifcfg files is necessary. --- diff --git a/modules.d/45ifcfg/check b/modules.d/45ifcfg/check index 0f6e457ac..6ebc8d49e 100644 --- a/modules.d/45ifcfg/check +++ b/modules.d/45ifcfg/check @@ -1,5 +1,5 @@ #!/bin/sh -[ -f /etc/redhat-release ] || exit 1 +[ -d /etc/sysconfig/network-scripts/ ] || exit 1 [[ $1 = -d ]] && echo network