Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0112-network-depend-on-ifcfg-if-etc-sysconfig-network-scr.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0112-network-depend-on-ifcfg-if-etc-sysconfig-network-scr.patch of Package dracut
From 1113178730dec86992de6ccc328a7d812179afb4 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Thu, 10 Jun 2010 13:52:31 +0200 Subject: [PATCH] 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.8.3.1