Blame 0004-fips-fixes-copy-paste-error-for-check.patch

Harald Hoyer c3a574
From 59a083d8d18e3c9364c62740e2307679c2d6c7d2 Mon Sep 17 00:00:00 2001
Harald Hoyer c3a574
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer c3a574
Date: Fri, 18 Jun 2010 12:52:52 +0200
Harald Hoyer c3a574
Subject: [PATCH 4/8] fips: fixes copy&paste error for "check"
Harald Hoyer c3a574
Harald Hoyer c3a574
---
Harald Hoyer c3a574
 modules.d/01fips/check |   16 +---------------
Harald Hoyer c3a574
 1 files changed, 1 insertions(+), 15 deletions(-)
Harald Hoyer c3a574
Harald Hoyer c3a574
diff --git a/modules.d/01fips/check b/modules.d/01fips/check
Harald Hoyer c3a574
index e5cd87e..9d8d2e6 100755
Harald Hoyer c3a574
--- a/modules.d/01fips/check
Harald Hoyer c3a574
+++ b/modules.d/01fips/check
Harald Hoyer c3a574
@@ -1,19 +1,5 @@
Harald Hoyer c3a574
 #!/bin/bash
Harald Hoyer c3a574
 
Harald Hoyer c3a574
-. $dracutfunctions
Harald Hoyer c3a574
-
Harald Hoyer c3a574
-for program in ip arping; do 
Harald Hoyer c3a574
-  which $program >/dev/null 2>&1
Harald Hoyer c3a574
-  if [ $? -ne 0 ]; then
Harald Hoyer c3a574
-    dwarning "Could not find program \"$program\" required by network." 
Harald Hoyer c3a574
-    exit 1
Harald Hoyer c3a574
-  fi
Harald Hoyer c3a574
-done
Harald Hoyer c3a574
-for program in dhclient brctl; do
Harald Hoyer c3a574
-  which $program >/dev/null 2>&1
Harald Hoyer c3a574
-  if [ $? -ne 0 ]; then
Harald Hoyer c3a574
-    dwarning "Could not find program \"$program\" it might be required by network." 
Harald Hoyer c3a574
-  fi
Harald Hoyer c3a574
-done
Harald Hoyer c3a574
+[[ $1 = -d ]] && exit 0
Harald Hoyer c3a574
 exit 255
Harald Hoyer c3a574
 
Harald Hoyer c3a574
-- 
Harald Hoyer c3a574
1.7.0.1
Harald Hoyer c3a574